update: add the package page

This commit is contained in:
ngn
2024-08-13 22:12:27 +03:00
parent a556ed08aa
commit aa0b373423
8 changed files with 345 additions and 43 deletions

View File

@ -92,7 +92,7 @@ func main() {
})
app.Get("/", routes.GET_index)
app.Get("/p/:name", routes.GET_package)
app.Get("/p/:name/:version", routes.GET_package)
app.Get("*", func(c *fiber.Ctx) error {
return lib.RenderError(c, 404)