Skip to content

Commit a9ac18a

Browse files
committed
move table import to bottom
1 parent 4ace1fe commit a9ac18a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/source/jwt/examples/example.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from datetime import timedelta
22

33
from fastapi import FastAPI, Request
4-
from home.tables import Movie # An example Table
54
from piccolo_admin.endpoints import create_admin
65
from piccolo_api.crud.endpoints import PiccoloCRUD
76
from piccolo_api.fastapi.endpoints import FastAPIKwargs, FastAPIWrapper
@@ -10,6 +9,9 @@
109
from piccolo.apps.user.tables import BaseUser
1110
from starlette.routing import Mount, Route
1211

12+
from home.tables import Movie # An example Table
13+
14+
1315
public_app = FastAPI(
1416
routes=[
1517
Mount(
@@ -55,6 +57,7 @@ async def in_blacklist(self, token: str) -> bool:
5557

5658
public_app.mount("/private", protected_app)
5759

60+
5861
# This is optional if you want to provide a logout endpoint
5962
# in your application. By adding a token to the token blacklist,
6063
# you are invalidating the token and need to login again to get

0 commit comments

Comments
 (0)