fix: add auth to /upload endpoint to resolve 401 on file attachment
Fixes #10 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -51,7 +51,7 @@ export async function authMiddleware(token: string | null) {
|
||||
const path = ctx.path
|
||||
if (
|
||||
path === '/health' ||
|
||||
(!path.startsWith('/api') && !path.startsWith('/v1') && path !== '/upload' && path !== '/webhook')
|
||||
(!path.startsWith('/api') && !path.startsWith('/v1') && path !== '/webhook')
|
||||
) {
|
||||
await next()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user