Skip to content

Commit 3fe9d30

Browse files
committed
GH-7: Use the wrapped class for making '/user' API work
1 parent c269911 commit 3fe9d30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/demonstration/router.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
from fastapi import Depends
44
from fastapi import Request, APIRouter
55
from fastapi.responses import HTMLResponse
6-
from fastapi.security import OAuth2
76
from fastapi.templating import Jinja2Templates
87

8+
from fastapi_oauth2.security import OAuth2
9+
910
oauth2 = OAuth2()
1011
router = APIRouter()
1112
templates = Jinja2Templates(directory="templates")

0 commit comments

Comments
 (0)