|
@@ -30,7 +30,8 @@ from jose import JWTError, jwt
|
|
from fastapi_jwt_auth import AuthJWT
|
|
from fastapi_jwt_auth import AuthJWT
|
|
from fastapi_jwt_auth.exceptions import AuthJWTException
|
|
from fastapi_jwt_auth.exceptions import AuthJWTException
|
|
from fastapi.security import OAuth2AuthorizationCodeBearer, OAuth2PasswordRequestForm
|
|
from fastapi.security import OAuth2AuthorizationCodeBearer, OAuth2PasswordRequestForm
|
|
-
|
|
|
|
|
|
+import pymysql
|
|
|
|
+pymysql.install_as_MySQLdb()
|
|
|
|
|
|
# app
|
|
# app
|
|
app = FastAPI()
|
|
app = FastAPI()
|