This commit is contained in:
2026-07-16 16:31:36 +03:00
commit 3c8d2dd572
26 changed files with 1684 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
'''web server routes'''
+9
View File
@@ -0,0 +1,9 @@
from fastapi import APIRouter
from fastapi.security import OAuth2PasswordRequestForm, OAuth2PasswordBearer
router=APIRouter(prefix="/protected")
oauth2_scheme=OAuth2PasswordBearer(tokenUrl="/protected/token")
@router.get("")
def protected()->dict:
return {"protected router": "Hello, this is a protected router"}