medium.rip/api/routes/show.go
Sphericalkat 9600c21c5a feat: set up embedded static server
Signed-off-by: Sphericalkat <amolele@gmail.com>
2023-05-27 13:27:01 +05:30

18 lines
287 B
Go

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)
}