Files
BugBeGone/routes/routes.go
T
2022-03-21 22:15:09 -07:00

17 lines
285 B
Go

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"
})
}