Created
June 26, 2018 20:30
-
-
Save Cibernomadas/eca7b82ce64e60e43a810d1f4a779243 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func RegisterRoutes(srv *gin.Engine) { | |
srv.GET("/", handlers.IndexFn) | |
srv.GET("/login", handlers.LoginFn) | |
srv.POST("/login", handlers.LoginFn) | |
srv.GET("/register", handlers.RegisterFn) | |
srv.POST("/register", handlers.RegisterFn) | |
auth := srv.Group("", handlers.Authenticated) | |
auth.GET("/logout", handlers.LogoutFn) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment