This commit is contained in:
Lars
2024-01-10 21:20:45 +01:00
parent 34bdd1b43a
commit 9ce6757fcd
18 changed files with 571 additions and 2 deletions

16
routers/example.go Normal file
View File

@@ -0,0 +1,16 @@
package routers
import (
"github.com/gofiber/fiber/v2"
"gopkg.cloudyne.io/go-fiber-template/controllers"
)
func Example(app *fiber.App) {
app.Get("/", controllers.FrontendExample)
// app.Get("/api/v1/example/", controllers.ListExample)
// app.Get("/api/v1/example/:id/", controllers.GetExample)
// app.Post("/api/v1/example/", controllers.CreateExample)
// app.Patch("/api/v1/example/:id/", controllers.UpdateExample)
// app.Delete("/api/v1/example/:id/", controllers.DeleteExample)
}