Esempio n. 1
0
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))
}
Esempio n. 2
0
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"))
}
Esempio n. 3
0
func ConfigMiscHandlers(router *mux.Router) {
	router.HandleFunc("/bulletin", public.AuthUserVerifierWrapper(handleBulletinNotes))

	router.HandleFunc("/status/application", handleApplicationStatus)
}