mirror of
https://github.com/SphericalKat/medium.rip.git
synced 2026-10-21 01:34:22 +00:00
feat: set up embedded static server
Signed-off-by: Sphericalkat <amolele@gmail.com>
This commit is contained in:
1 parent
dea9f3cfaa
commit
9600c21c5a
18 files changed
+1838
-7
No files matched your search
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user