More groups!
This commit is contained in:
parent
f141e4c98c
commit
0ffdeb7114
|
@ -38,8 +38,11 @@ func main() {
|
||||||
// Routes defined in the routes package
|
// Routes defined in the routes package
|
||||||
routes := r.Group("/api")
|
routes := r.Group("/api")
|
||||||
{
|
{
|
||||||
routes.POST("/user/register", handlers.UserRegister)
|
userRoutes := routes.Group("/user")
|
||||||
routes.POST("/user/login", handlers.UserLogin)
|
{
|
||||||
|
userRoutes.POST("/register", handlers.UserRegister)
|
||||||
|
userRoutes.POST("/login", handlers.UserLogin)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
|
r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user