Added directory structure for routing

This commit is contained in:
niku committed 2023-07-22 14:19:12 +02:00
1 parent 2fba1066f8
commit 416eb415a9
7 files changed
+69 -19

No files matched your search

@@ -1,17 +0,0 @@
package main
import (
"log"
"github.com/gofiber/fiber/v2"
)
func main() {
app := fiber.New()
app.Get("/", func (c *fiber.Ctx) error {
return c.SendString("Hello, World!")
})
log.Fatal(app.Listen(":3000"))
}
@@ -0,0 +1,13 @@
package main
import (
"log"
"{{cookiecutter.module_path}}/internal/app"
)
func main() {
if err := app.Run(); err != nil {
log.Fatal(err)
}
}