breaking change: move /online route to /users
This commit is contained in:
4
main.go
4
main.go
@@ -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(),
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user