Mave frontend data to base api root
Because many times we don't have a session
This commit is contained in:
parent
544ac78a3b
commit
839abcbd28
4 changed files with 20 additions and 11 deletions
|
|
@ -11,6 +11,7 @@ func AddRoutes(r *mux.Router) {
|
|||
router := resource.NewRouter(r)
|
||||
//r.Use(render.SetContentType(render.ContentTypeJSON))
|
||||
// Unauthenticated endpoints
|
||||
r.HandleFunc("/", handlerJSON(getRoot))
|
||||
r.HandleFunc("/signin", handlerJSONPost(postSignin))
|
||||
r.Handle("/signout", authenticatedHandlerBasic(postSignout))
|
||||
r.HandleFunc("/signup", handlerJSONPost(postSignup))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue