Move api to /api/v1
This includes docs, which are now at http://127.0.0.1:8000/api/v1/docs and the openapi.json, now at http://127.0.0.1:8000/api/v1/openapi.json Fixes #4
This commit is contained in:
@@ -5,7 +5,7 @@ from app.services.database import get_session
|
||||
from app.services.auth import auth_is_admin
|
||||
import app.services.door as doorService
|
||||
|
||||
door_router = APIRouter(prefix="/door",tags=["Door"])
|
||||
door_router = APIRouter(prefix="/api/v1/door",tags=["Door"])
|
||||
|
||||
@door_router.put("/open")
|
||||
def open_door(db: Session = Depends(get_session), admin: bool = Depends(auth_is_admin)):
|
||||
|
||||
Reference in New Issue
Block a user