added backend and 2 endpoints fetch

This commit is contained in:
wt committed 2025-07-30 00:01:45 +07:00
1 parent 7c6db3dfbd
commit ca99cfcf6d
56 files changed
+344 -29

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
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)
}