feat: add pilot database and router#570
Conversation
8c655b0 to
2cfe44a
Compare
2cfe44a to
ce03dc2
Compare
65abf0c to
64aece6
Compare
da86dca to
109525e
Compare
Where an issue?Whether we have a base router with PossibilitiesSplittingLet's start with the routers themselves. We can separate pilots and users endpoints : That brings us:
Using another approachWe could have a bare base router without dependency injection, with sub routers with # Authenticated parent router
protected_router = APIRouter(dependencies=[Depends(verify_dirac_access_token)])
@protected_router.get("/secure")
def secure_route():
return {"msg": "secure"}
# Public sub-router (no auth)
public_router = APIRouter()
@public_router.get("/public")
def public_route():
return {"msg": "public"}Its goal would be to replacer |
4009683 to
60fb4e6
Compare
0181496 to
315a77b
Compare
dae7268 to
95cf9b4
Compare
a9b353d to
4ba2c9b
Compare
fbc9233 to
c0c1ff2
Compare
|
12cfe79 to
b4ebd9f
Compare
070de3e to
afe2c12
Compare
Split of #421 , first part : pilot management
closes #960