|
|
|
@ -95,7 +95,6 @@ func InitRoutes(apper Apper, r *mux.Router) *mux.Router { |
|
|
|
|
me.HandleFunc("/export", handler.User(viewExportOptions)).Methods("GET") |
|
|
|
|
me.HandleFunc("/export.json", handler.Download(viewExportFull, UserLevelUser)).Methods("GET") |
|
|
|
|
me.HandleFunc("/import", handler.User(viewImport)).Methods("GET") |
|
|
|
|
me.HandleFunc("/import", handler.User(handleImport)).Methods("POST") |
|
|
|
|
me.HandleFunc("/settings", handler.User(viewSettings)).Methods("GET") |
|
|
|
|
me.HandleFunc("/invites", handler.User(handleViewUserInvites)).Methods("GET") |
|
|
|
|
me.HandleFunc("/logout", handler.Web(viewLogout, UserLevelNone)).Methods("GET") |
|
|
|
@ -108,6 +107,7 @@ func InitRoutes(apper Apper, r *mux.Router) *mux.Router { |
|
|
|
|
apiMe.HandleFunc("/password", handler.All(updatePassphrase)).Methods("POST") |
|
|
|
|
apiMe.HandleFunc("/self", handler.All(updateSettings)).Methods("POST") |
|
|
|
|
apiMe.HandleFunc("/invites", handler.User(handleCreateUserInvite)).Methods("POST") |
|
|
|
|
apiMe.HandleFunc("/import", handler.User(handleImport)).Methods("POST") |
|
|
|
|
|
|
|
|
|
// Sign up validation
|
|
|
|
|
write.HandleFunc("/api/alias", handler.All(handleUsernameCheck)).Methods("POST") |
|
|
|
|