router.go (236B)
1 package main 2 3 import "net/http" 4 5 func router() { 6 http.HandleFunc("POST /login", login) 7 http.HandleFunc("POST /logout/{uuid}", logout) 8 http.HandleFunc("POST /credentials", credentials) 9 http.HandleFunc("GET /{uuid}", authenticated) 10 }