first commit

This commit is contained in:
2025-04-13 20:27:20 +03:00
commit b20847c998
21 changed files with 1327 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package adapters
import "github.com/gofiber/fiber/v2"
var (
router *fiber.Router = nil
)
func RegisterRouter(r *fiber.Router) {
router = r
if router == nil {
panic("router is nil")
}
(*router).Get("/test", test)
}
func test(c *fiber.Ctx) error {
return c.SendString("test")
}