pos gap fix
This commit is contained in:
@@ -1015,3 +1015,20 @@ func (ctl *PosController) WebUpdateStaffShift(c *fiber.Ctx) error {
|
||||
"message": "Shift updated", "details": shift,
|
||||
})
|
||||
}
|
||||
|
||||
// AuthAdoption reports how much of the till fleet is carrying a session token.
|
||||
//
|
||||
// The answer to "is it safe to set POS_AUTH_REQUIRED=true yet". Every outlet it
|
||||
// lists is a till that would stop being able to ring a bill the moment
|
||||
// enforcement goes on.
|
||||
//
|
||||
// Behind the web session guard on purpose: that list is also a map of which
|
||||
// shops are reachable without a credential today.
|
||||
func (ctl *PosController) AuthAdoption(c *fiber.Ctx) error {
|
||||
return c.JSON(fiber.Map{
|
||||
"code": http.StatusOK,
|
||||
"status": true,
|
||||
"message": "Success",
|
||||
"details": middleware.PosAdoptionReport(),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user