Created
This commit is contained in:
16
routers/example.go
Normal file
16
routers/example.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user