first commit
This commit is contained in:
commit
ca8c886763
11 files changed
+974
No files matched your search
@@ -0,0 +1,16 @@
|
||||
package routes
|
||||
|
||||
import (
|
||||
"github.com/SowinskiBraeden/BugBeGone/controllers"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
||||
func Setup(app *fiber.App) {
|
||||
|
||||
app.Get("/", controllers.MainPage)
|
||||
|
||||
// 404 Handler
|
||||
app.Use(func(c *fiber.Ctx) error {
|
||||
return c.SendStatus(404) // => 404 "Not Found"
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user