add /api/outline path

This commit is contained in:
Kevin Pham
2023-11-29 11:38:28 -06:00
parent 909d29230f
commit 53ce3ff297
4 changed files with 66 additions and 14 deletions

View File

@@ -147,13 +147,14 @@ func main() {
app.Get("ruleset", handlers.Ruleset)
app.Get("raw/*", handlers.Raw)
app.Get("api/*", handlers.Api)
proxyOpts := &handlers.ProxyOptions{
Verbose: *verbose,
RulesetPath: *ruleset,
}
app.Get("api/outline/*", handlers.NewAPIOutlineHandler("api/outline/*", proxyOpts))
app.Get("/*", handlers.NewProxySiteHandler(proxyOpts))
app.Post("/*", handlers.NewProxySiteHandler(proxyOpts))