feat: 🎉 Rating Orama!

This commit is contained in:
2023-04-09 06:45:27 +02:00
commit b2f4b573f3
61 changed files with 8130 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
package router
import (
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/recover"
"github.com/zepyrshut/rating-orama/handlers"
)
func Routes(app *fiber.App) {
app.Use(recover.New())
app.Static("/js", "./views/js")
app.Static("/css", "./views/css")
app.Get("/", handlers.Repo.Index)
app.Get("/another", handlers.Repo.Another)
app.Get("/tv-show", handlers.Repo.GetAllChapters)
dev := app.Group("/dev")
dev.Get("/ping", handlers.Repo.Ping)
dev.Get("/panic", handlers.Repo.Panic)
}