func ConfigUserHandler(router *mux.Router) { router.HandleFunc("/register", handleRegister) router.HandleFunc("/login", handleLogin) router.HandleFunc("/logout", public.AuthUserVerifierWrapper(handleLogout)) router.HandleFunc("/profile", public.AuthUserVerifierWrapper(handleUserProfile)) }
func ConfigFormHandler(router *mux.Router) { router.HandleFunc("/submit", public.AuthUserVerifierWrapper(handleFormSubmit)) router.HandleFunc("/upload", public.AuthUserVerifierWrapper(handleFormFileUpload)) router.HandleFunc("/view", public.AuthUserVerifierWrapper(handleFormView)) router.HandleFunc("/recomm/{hash}", handleRecommendation) router.HandleFunc("/recomm/{hash}/upload", public.RequestMethodGuard(handleRecommendationUpload, "post", "put")) }
func ConfigMiscHandlers(router *mux.Router) { router.HandleFunc("/bulletin", public.AuthUserVerifierWrapper(handleBulletinNotes)) router.HandleFunc("/status/application", handleApplicationStatus) }