first commit
This commit is contained in:
commit
be3f79d2e1
14 files changed
+1141
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package routes
|
||||
|
||||
import (
|
||||
"github.com/SowinskiBraeden/MyHomeCloud/controllers"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
||||
func Setup(app *fiber.App) {
|
||||
|
||||
// Render Handlers
|
||||
app.Get("/", controllers.MainPage)
|
||||
app.Get("/uploadImage", controllers.UploadImageView)
|
||||
|
||||
// API Handlers
|
||||
app.Post("/uploadImage", controllers.UploadImage)
|
||||
|
||||
// 404 Handler
|
||||
app.Use(func(c *fiber.Ctx) error {
|
||||
return c.SendStatus(404) // => 404 "Not Found"
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user