breaking change: move /online route to /users

This commit is contained in:
Arya Kiran
2023-01-18 21:16:44 +05:30
parent 67b4d8842e
commit be59d303d0
2 changed files with 6 additions and 6 deletions

View File

@@ -97,10 +97,10 @@ func main() {
})
})
app.Get("/online", func(c *fiber.Ctx) error {
app.Get("/users", func(c *fiber.Ctx) error {
if runtime.GOOS == "windows" {
return c.JSON(fiber.Map{
"message": "/online is not supported on Windows",
"message": "/users is not supported on Windows",
"status": c.Response().StatusCode(),
})
}