File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11from datetime import timedelta
22
33from fastapi import FastAPI , Request
4- from home .tables import Movie # An example Table
54from piccolo_admin .endpoints import create_admin
65from piccolo_api .crud .endpoints import PiccoloCRUD
76from piccolo_api .fastapi .endpoints import FastAPIKwargs , FastAPIWrapper
109from piccolo .apps .user .tables import BaseUser
1110from starlette .routing import Mount , Route
1211
12+ from home .tables import Movie # An example Table
13+
14+
1315public_app = FastAPI (
1416 routes = [
1517 Mount (
@@ -55,6 +57,7 @@ async def in_blacklist(self, token: str) -> bool:
5557
5658public_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
You can’t perform that action at this time.
0 commit comments