update/404 not found handler
This commit is contained in:
1 parent
8fa9a94b45
commit
54c7a6669f
1 file changed
+5
@@ -66,4 +66,9 @@ func Setup(app *fiber.App) {
|
||||
app.Post(routerPrefix+"/admin/updateLockerCombo", controllers.UpdateLockerCombo)
|
||||
app.Post(routerPrefix+"/admin/renableStudent", controllers.RemoveStudentsDisabled)
|
||||
app.Post(routerPrefix+"/admin/renableTeacher", controllers.RemoveTeachersDisabled)
|
||||
|
||||
// 404 Handler
|
||||
app.Use(func(c *fiber.Ctx) error {
|
||||
return c.SendStatus(404) // => 404 "Not Found"
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user