move ruleset and raw endpoints to /api/*, update docs, fix ruleset yaml marshal panic issue

This commit is contained in:
Kevin Pham
2023-12-07 09:46:38 -06:00
parent be68ae7caa
commit 1ebb486592
5 changed files with 31 additions and 34 deletions

View File

@@ -167,10 +167,10 @@ func main() {
app.Get("styles.css", handlers.Styles)
app.Get("script.js", handlers.Script)
app.Get("ruleset/*", handlers.NewRulesetSiteHandler(proxyOpts))
app.All("raw/*", handlers.NewRawProxySiteHandler(proxyOpts))
app.All("api/raw/*", handlers.NewRawProxySiteHandler(proxyOpts))
app.Get("api/ruleset/*", handlers.NewRulesetSiteHandler(proxyOpts))
app.Get("api/content/*", handlers.NewAPIContentHandler("api/outline/*", proxyOpts))
app.Get("outline/*", handlers.NewOutlineHandler("outline/*", proxyOpts))