Forwarding requests

This commit is contained in:
2024-07-14 22:41:14 +08:00
parent d371c4fbfa
commit 82dd04f8aa
3 changed files with 34 additions and 1 deletions

View File

@ -12,6 +12,8 @@ func MapAPIs(app *fiber.App) {
wellKnown.Get("/directory/services", listExistsService)
}
app.All("/srv/:service/*", forwardServiceRequest)
api := app.Group("/api").Name("API")
{
api.Use(func(c *fiber.Ctx) error {