Fix wrong go types
This commit is contained in:
parent
f36146731b
commit
d113f02d90
@ -3,11 +3,11 @@ package api
|
||||
import (
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"github.com/gofiber/fiber/v2/middleware/helmet"
|
||||
v1 "{{cookiecutter.module_path}}/internal/app/api/v1"
|
||||
"{{cookiecutter.module_path}}/internal/app/api/v1"
|
||||
)
|
||||
|
||||
func ConfigureRoutes(router *fiber.App) error {
|
||||
api := router.Group("/api")
|
||||
func ConfigureRoutes(app *fiber.App) error {
|
||||
api := app.Group("/api")
|
||||
|
||||
api.Use(helmet.New())
|
||||
|
@ -3,6 +3,7 @@ package app
|
||||
import (
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"github.com/gofiber/fiber/v2/middleware/compress"
|
||||
"github.com/gofiber/fiber/v2/middleware/helmet"
|
||||
"github.com/gofiber/fiber/v2/middleware/logger"
|
||||
"{{cookiecutter.module_path}}/internal/app/api"
|
||||
)
|
||||
@ -12,6 +13,7 @@ func Run() error {
|
||||
|
||||
app.Use(logger.New())
|
||||
app.Use(compress.New())
|
||||
app.Use(helmet.New())
|
||||
|
||||
api.ConfigureRoutes(app)
|
||||
|
Loading…
x
Reference in New Issue
Block a user