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

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