package routes

import (
	"github.com/gofiber/fiber/v2"
	"github.com/aliyyil/flutter-mane/app/controllers"
)

// PublicRoutes func for describe group of public routes.
func PublicRoutes(a *fiber.App) {
	// Create routes group.
	route := a.Group("/api/v1")

	// Routes for GET method:
	route.Get("/books", controllers.GetBooks)              // get list of all books
	route.Get("/book/:id", controllers.GetBook)            // get one book by ID
	route.Get("/token/new", controllers.GetNewAccessToken) // create a new access tokens
	route.Get("/testing", controllers.GetTestingAPI) // create a new access tokens
	route.Get("/upload", controllers.UploadStorage) // create a new access tokens
	route.Post("/cloud-webp", controllers.ImageWebP) // create a new access tokens
}
