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

@@ -41,7 +41,7 @@ func NewRulesetSiteHandler(opts *ProxyOptions) fiber.Handler {
// a specific rule was requested by path /ruleset/https://example.com
// return only that particular rule
reqURL, err := extractURLFromContext(c, "ruleset/")
reqURL, err := extractURLFromContext(c, "api/ruleset/")
if err != nil {
return err
}