feat: set up embedded static server

Signed-off-by: Sphericalkat <amolele@gmail.com>
This commit is contained in:
sphericalkat committed 2023-05-27 13:27:01 +05:30
1 parent dea9f3cfaa
commit 9600c21c5a
18 files changed
+1838 -7

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
package routes
import "github.com/gofiber/fiber/v2"
func show(c *fiber.Ctx) error {
return nil
}
func index(c *fiber.Ctx) error {
return c.Render("index", fiber.Map {
"Title": "medium.rip",
})
}
func RegisterRoutes(app *fiber.App) {
app.Get("/", index)
app.Get("/:id", show)
}