mirror of
https://github.com/SphericalKat/medium.rip.git
synced 2024-09-28 16:25:58 +00:00
18 lines
287 B
Go
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)
|
|
} |