mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 08:46:22 +02:00
fix: rename migration to 85, remove obsolete noAuth prefix
- Rename snapshot migration from 84 to 85 to avoid conflict with upstream's LLM auto-mode migration - Remove /api/v1/podcasts/ from noAuthPrefixes since all podcast endpoints now require authentication Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
f2a607300d
commit
c2e2472356
2 changed files with 5 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
"""Add public_chat_snapshots table and remove deprecated columns from new_chat_threads
|
"""Add public_chat_snapshots table and remove deprecated columns from new_chat_threads
|
||||||
|
|
||||||
Revision ID: 84
|
Revision ID: 85
|
||||||
Revises: 83
|
Revises: 84
|
||||||
Create Date: 2026-01-29
|
Create Date: 2026-01-29
|
||||||
|
|
||||||
Changes:
|
Changes:
|
||||||
|
|
@ -19,8 +19,8 @@ from collections.abc import Sequence
|
||||||
from alembic import op
|
from alembic import op
|
||||||
|
|
||||||
# revision identifiers, used by Alembic.
|
# revision identifiers, used by Alembic.
|
||||||
revision: str = "84"
|
revision: str = "85"
|
||||||
down_revision: str | None = "83"
|
down_revision: str | None = "84"
|
||||||
branch_labels: str | Sequence[str] | None = None
|
branch_labels: str | Sequence[str] | None = None
|
||||||
depends_on: str | Sequence[str] | None = None
|
depends_on: str | Sequence[str] | None = None
|
||||||
|
|
||||||
|
|
@ -26,7 +26,7 @@ class BaseApiService {
|
||||||
noAuthEndpoints: string[] = ["/auth/jwt/login", "/auth/register", "/auth/refresh"];
|
noAuthEndpoints: string[] = ["/auth/jwt/login", "/auth/register", "/auth/refresh"];
|
||||||
|
|
||||||
// Prefixes that don't require auth (checked with startsWith)
|
// Prefixes that don't require auth (checked with startsWith)
|
||||||
noAuthPrefixes: string[] = ["/api/v1/public/", "/api/v1/podcasts/"];
|
noAuthPrefixes: string[] = ["/api/v1/public/"];
|
||||||
|
|
||||||
// Use a getter to always read fresh token from localStorage
|
// Use a getter to always read fresh token from localStorage
|
||||||
// This ensures the token is always up-to-date after login/logout
|
// This ensures the token is always up-to-date after login/logout
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue