Small rename
This commit is contained in:
parent
0ffdeb7114
commit
cf09928a39
|
@ -36,9 +36,9 @@ func main() {
|
||||||
docs.SwaggerInfo.BasePath = "/api"
|
docs.SwaggerInfo.BasePath = "/api"
|
||||||
|
|
||||||
// Routes defined in the routes package
|
// Routes defined in the routes package
|
||||||
routes := r.Group("/api")
|
api := r.Group("/api")
|
||||||
{
|
{
|
||||||
userRoutes := routes.Group("/user")
|
userRoutes := api.Group("/user")
|
||||||
{
|
{
|
||||||
userRoutes.POST("/register", handlers.UserRegister)
|
userRoutes.POST("/register", handlers.UserRegister)
|
||||||
userRoutes.POST("/login", handlers.UserLogin)
|
userRoutes.POST("/login", handlers.UserLogin)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user