Serve media from drive via fully in-memory blob store

This commit is contained in:
Ian Gulliver
2026-08-15 21:18:33 -07:00
parent 00239d027c
commit 6c0b1d34c5
8 changed files with 377 additions and 32 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ func (a *Auth) Wrap(next http.Handler) http.Handler {
}
email := a.sessionEmail(r)
if email == "" {
if strings.Contains(r.URL.Path, "/api/") {
if strings.Contains(r.URL.Path, "/api/") || strings.HasPrefix(r.URL.Path, "/blob/") {
http.Error(w, "unauthenticated", http.StatusUnauthorized)
return
}