2023-12-30 19:42:45 +01:00
|
|
|
package handlers
|
|
|
|
|
|
|
|
import "github.com/gofiber/fiber/v2"
|
|
|
|
|
|
|
|
func APIRouter(router fiber.Router) error {
|
|
|
|
return v1Router(router.Group("/v1"))
|
|
|
|
}
|
|
|
|
|
|
|
|
func v1Router(router fiber.Router) error {
|
|
|
|
projectsRouter(router.Group("/projects"))
|
|
|
|
cardsRouter(router.Group("/cards"))
|
|
|
|
tagsRouter(router.Group("/tags"))
|
2023-12-31 05:53:46 +01:00
|
|
|
viewsRouter(router.Group("/views"))
|
2024-01-10 15:35:12 +01:00
|
|
|
filtersRouter(router.Group("/filters"))
|
2024-01-12 02:52:36 +01:00
|
|
|
wsRouter(router.Group("/ws"))
|
2023-12-30 19:42:45 +01:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// app.Post("/api/v1/cards", handlers.CreateCard)
|
|
|
|
// app.Get("/api/v1/cards/:id", handlers.GetCard)
|
|
|
|
// app.Put("/api/v1/cards/:id", handlers.UpdateCard)
|
|
|
|
// app.Delete("/api/v1/cards/:id", handlers.DeleteCard)
|
|
|
|
|
|
|
|
// app.Post("/api/v1/tags", handlers.CreateTag)
|
|
|
|
// app.Get("/api/v1/tags/:id", handlers.GetTag)
|
|
|
|
// app.Delete("/api/v1/tags/:id", handlers.DeleteTag)
|
|
|
|
// app.Put("/api/v1/tags/:id", handlers.UpdateTag)
|