Merge branch 'origin/proxy_v2' into origin/proxy_v2

This commit is contained in:
Damian
2023-12-01 11:26:44 -06:00
committed by GitHub
13 changed files with 190 additions and 73 deletions

View File

@@ -210,12 +210,12 @@ func main() {
RulesetPath: *ruleset,
}
app.Get("api/content/*", handlers.NewAPIOutlineHandler("api/outline/*", proxyOpts))
app.Get("api/content/*", handlers.NewAPIContentHandler("api/outline/*", proxyOpts))
app.Get("outline/*", handlers.NewOutlineHandler("outline/*", proxyOpts))
app.All("/*", handlers.NewProxySiteHandler(proxyOpts))
fmt.Println(cli.StartupMessage("1.0.0", *port, *ruleset))
fmt.Println(cli.StartupMessage(version, *port, *ruleset))
log.Fatal(app.Listen(":" + *port))
}