proxy

This commit is contained in:
微凉
2021-10-29 00:02:02 +08:00
parent 0a50fbd080
commit f4969560d4
6 changed files with 49 additions and 0 deletions

View File

@ -10,6 +10,8 @@ func InitApiRouter(app *fiber.App) {
// TODO from settings
app.Use(cors.New())
app.Get("/d/*", Down)
// TODO check allow proxy?
app.Get("/p/*", Proxy)
public := app.Group("/api/public")
{