feat(bat-api): 实现内嵌 dashboard
bat-rust / Build and test Rust (push) Canceled after 0s
bat-rust / Build and test Go API (push) Canceled after 0s

Closes #46
This commit is contained in:
2026-08-31 23:17:23 +08:00
parent ab21344773
commit 4ed81f0030
30 changed files with 3527 additions and 91 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ func (c *Config) Normalize() error {
if c.AuthQueryParam == "" {
c.AuthQueryParam = "bat_token"
}
c.AuthExemptPaths = normalizePathList(c.AuthExemptPaths)
c.AuthExemptPaths = normalizePathList(append(c.AuthExemptPaths, dashboardAuthExemptPaths()...))
if c.RateLimitRPS < 0 {
return fmt.Errorf("rate limit rps must be >= 0")
}