mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew.git
synced 2025-05-13 11:37:33 -05:00
Fix webui endpoints
This commit is contained in:
parent
8ed43c8625
commit
aa78e9dfbd
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ pub async fn request(req: HttpRequest, body: String) -> HttpResponse {
|
|||
if args.hidden && req.path().starts_with("/api/webui/") {
|
||||
return not_found(&headers);
|
||||
}
|
||||
if headers.get("aoharu-asset-version").is_none() && req.path().starts_with("/api") {
|
||||
if headers.get("aoharu-asset-version").is_none() && req.path().starts_with("/api") && !req.path().starts_with("/api/webui") {
|
||||
if args.hidden {
|
||||
return not_found(&headers);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue