INNER CODE UNIT · Go
main
cryptag/cryptag · servers/cryptag-webserver/main.go:71
func main() {
router := mux.NewRouter()
// Rows
router.HandleFunc("/", GetRoot).Methods("GET")
router.HandleFunc("/rows", GetRows).Methods("GET")
router.HandleFunc("/rows", PostRow).Methods("POST")
router.HandleFunc("/rows/list", ListRows).Methods("GET")
router.HandleFunc("/rows/delete", DeleteRows).Methods("GET")
// Tags
router.HandleFunc("/tags", GetTags).Methods("GET")
router.HandleFunc("/tags", PostTag).Methods("POST")
http.Handle("/", router)
port := os.Getenv("PORT")
if port == "" {