Files
wallet/backend/server/configure.go
T

19 lines
367 B
Go

package server
import (
"backend/api"
"github.com/gofiber/fiber/v2"
)
func Configure(app *fiber.App) {
app.Static("/", "../frontend/build")
apiGroup := app.Group("/api")
operationGroup := apiGroup.Group("/operation")
operationGroup.Get("/", api.GetAllOperation)
categoryGroup := apiGroup.Group("/category")
categoryGroup.Get("/", api.GetAllCategories)
}