daily merchant app login fix

This commit is contained in:
2026-09-11 11:10:25 +05:30
parent e7577fe0cf
commit 8cc567c89b
4 changed files with 47 additions and 15 deletions

View File

@@ -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)