Added directory structure for routing

This commit is contained in:
2023-07-22 14:19:12 +02:00
parent 2fba1066f8
commit 416eb415a9
7 changed files with 69 additions and 19 deletions

View File

@ -0,0 +1,19 @@
package app
import (
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/compress"
"github.com/gofiber/fiber/v2/middleware/logger"
"{{cookiecutter.module_path}}/internal/app/api"
)
func Run() error {
app := fiber.New()
app.Use(logger.New())
app.Use(compress.New())
api.ConfigureRoutes(app)
return app.Listen(":3000")
}