mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-11 13:08:34 +03:00
relocating security file
This commit is contained in:
@@ -7,7 +7,7 @@ from sqlalchemy.orm import Session
|
||||
from core.config import VERSION, BREAKING_CHANGES
|
||||
from db import crud
|
||||
from db.database import get_db_dependency, get_db
|
||||
from security import get_user_auth, bearer_security
|
||||
from web.security import get_user_auth, bearer_security
|
||||
|
||||
default_router = APIRouter()
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ from auto_archiver import Metadata
|
||||
from loguru import logger
|
||||
import sqlalchemy
|
||||
|
||||
from security import token_api_key_auth
|
||||
from web.security import token_api_key_auth
|
||||
from db import models, schemas
|
||||
from worker import insert_result_into_db
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ from fastapi.responses import JSONResponse
|
||||
|
||||
from loguru import logger
|
||||
|
||||
from security import ALLOW_ANY_EMAIL, get_token_or_user_auth
|
||||
from web.security import ALLOW_ANY_EMAIL, get_token_or_user_auth
|
||||
from db import schemas
|
||||
from worker import create_sheet_task
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ from fastapi.encoders import jsonable_encoder
|
||||
from fastapi.responses import JSONResponse
|
||||
|
||||
from loguru import logger
|
||||
from security import get_token_or_user_auth
|
||||
from web.security import get_token_or_user_auth
|
||||
|
||||
from db import schemas
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ from fastapi.responses import JSONResponse
|
||||
from datetime import datetime
|
||||
|
||||
from loguru import logger
|
||||
from security import get_user_auth, get_token_or_user_auth
|
||||
from web.security import get_user_auth, get_token_or_user_auth
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from db import crud, schemas
|
||||
|
||||
Reference in New Issue
Block a user