rename db_new -> db
This commit is contained in:
parent
b4a74aca5f
commit
12432286bf
8 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ from fastapi import FastAPI
|
||||||
|
|
||||||
from .config import Config, Settings
|
from .config import Config, Settings
|
||||||
# from .db.schemata import User
|
# from .db.schemata import User
|
||||||
from .db_new import Connection
|
from .db import Connection
|
||||||
from .routers import main_router
|
from .routers import main_router
|
||||||
|
|
||||||
settings = Settings.get()
|
settings = Settings.get()
|
||||||
|
|
|
@ -7,7 +7,7 @@ from fastapi import Depends, HTTPException, status
|
||||||
from fastapi.security import OAuth2PasswordBearer
|
from fastapi.security import OAuth2PasswordBearer
|
||||||
|
|
||||||
from ..config import Config
|
from ..config import Config
|
||||||
from ..db_new import Capability, User
|
from ..db import Capability, User
|
||||||
|
|
||||||
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="user/authenticate")
|
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="user/authenticate")
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
from fastapi import APIRouter, Depends, HTTPException, status
|
from fastapi import APIRouter, Depends, HTTPException, status
|
||||||
|
|
||||||
from ..config import Config
|
from ..config import Config
|
||||||
from ..db_new import Capability, Connection, User, UserCreate
|
from ..db import Capability, Connection, User, UserCreate
|
||||||
from ._common import Responses, get_current_user_if_admin
|
from ._common import Responses, get_current_user_if_admin
|
||||||
|
|
||||||
router = APIRouter(prefix="/admin", tags=["admin"])
|
router = APIRouter(prefix="/admin", tags=["admin"])
|
||||||
|
|
Loading…
Reference in a new issue