daily merchant app login fix
This commit is contained in:
@@ -18,7 +18,12 @@ func RegisterUserRoutes(api fiber.Router, f *facade.Facade) {
|
||||
users.Delete("/delete", f.UserController.DeleteUser)
|
||||
|
||||
users = api.Group("/v1/mob/users")
|
||||
users.Post("/tenant/login", f.UserController.Login)
|
||||
// `TenantLogin`, not `Login`. The route is named for the tenant and the app
|
||||
// needs the shop with it — its name, address, category, branch and the
|
||||
// superadmin flag — none of which `UserInfo` carries. `TenantUserInfo` now
|
||||
// also carries the shiftid, shiftname and status that `Login` returned, so
|
||||
// this response is a superset of the old one and no client loses a field.
|
||||
users.Post("/tenant/login", f.UserController.TenantLogin)
|
||||
users.Get("/getusers", f.UserController.GetUserInfo)
|
||||
users.Post("/create", f.UserController.CreateUser)
|
||||
users.Put("/update", f.UserController.UpdateStaff)
|
||||
|
||||
Reference in New Issue
Block a user