package routes import ( "git.gnous.eu/Rick/calendrier/controllers" "github.com/gofiber/fiber/v2" ) func SetupApi(app *fiber.App) { /* api := app.Group("/api/v1", jwtware.New(jwtware.Config{ SigningKey: jwtware.SigningKey{Key: []byte(os.Getenv("JWT_SECRET"))}, })) */ api := app.Group("/api/v1") api.Get("/calendars", controllers.GetCalendars) api.Get("/calendar/:id", controllers.GetCalendar) api.Post("/calendar", controllers.PostCalendar) api.Post("/user", controllers.CreateUser) api.Post("/login", controllers.GetToken) /* api.Put("/calendar/:id/visibility", controllers.PutVisibilityCalendar) api.Delete("/calendar/:id", controllers.DeleteCalendar) api.Get("/calendar/:id/events", controllers.GetCalendarEvents) api.Post("/calendar/:id/event/:id", controllers.PostCalendarEvent) api.Get("/event/:id", controllers.GetEvent) api.Post("/event/:id", controllers.PostEvent) api.Put("/event/:id", controllers.PutEvent) api.Delete("/event/:id", controllers.DeleteEvent) */ }