mirror of
https://github.com/sfiorini/iptv-server.git
synced 2026-04-11 11:50:53 +00:00
Added routes to vercel.json (fix-4)
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
import aiosqlite
|
import aiosqlite
|
||||||
from fastapi import APIRouter, Depends, HTTPException
|
from fastapi import APIRouter, Depends, HTTPException
|
||||||
from passlib.context import CryptContext
|
from passlib.context import CryptContext
|
||||||
from utils.auth import verify_superadmin, get_user
|
from src.utils.auth import verify_superadmin, get_user
|
||||||
from utils.database import get_db
|
from src.utils.database import get_db
|
||||||
from models.models import User
|
from src.models.models import User
|
||||||
|
|
||||||
# Assuming pwd_context is initialized in auth.py and used there
|
# Assuming pwd_context is initialized in auth.py and used there
|
||||||
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") # Re-initialize or import
|
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") # Re-initialize or import
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
from fastapi import APIRouter, Depends, Path, HTTPException
|
from fastapi import APIRouter, Depends, Path, HTTPException
|
||||||
from fastapi.responses import FileResponse
|
from fastapi.responses import FileResponse
|
||||||
from utils.auth import authenticate_user_query
|
|
||||||
from pathlib import Path as FilePath
|
from pathlib import Path as FilePath
|
||||||
from config import CONTENT_PATH
|
from src.config import CONTENT_PATH
|
||||||
|
from src.utils.auth import authenticate_user_query
|
||||||
|
|
||||||
router = APIRouter(prefix="/content", tags=["content"])
|
router = APIRouter(prefix="/content", tags=["content"])
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import aiosqlite
|
|||||||
from fastapi import Depends, HTTPException, status, Query
|
from fastapi import Depends, HTTPException, status, Query
|
||||||
from fastapi.security import HTTPBasicCredentials, HTTPBasic
|
from fastapi.security import HTTPBasicCredentials, HTTPBasic
|
||||||
from passlib.context import CryptContext
|
from passlib.context import CryptContext
|
||||||
from config import SUPER_ADMIN_USER, SUPER_ADMIN_PASSWORD, DATABASE_FILENAME, DATA_PATH
|
from src.config import SUPER_ADMIN_USER, SUPER_ADMIN_PASSWORD, DATABASE_FILENAME, DATA_PATH
|
||||||
|
|
||||||
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
|
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
|
||||||
security = HTTPBasic()
|
security = HTTPBasic()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import aiosqlite
|
import aiosqlite
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from config import DATABASE_FILENAME, DATA_PATH
|
from src.config import DATABASE_FILENAME, DATA_PATH
|
||||||
|
|
||||||
async def get_db():
|
async def get_db():
|
||||||
# Build the full database path
|
# Build the full database path
|
||||||
|
|||||||
Reference in New Issue
Block a user