完成部分API路由以及文档
This commit is contained in:
9
pkg/JWT/jwt.py
Normal file
9
pkg/JWT/jwt.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from fastapi.security import OAuth2PasswordBearer
|
||||
|
||||
oauth2_scheme = OAuth2PasswordBearer(
|
||||
scheme_name='获取 JWT Bearer 令牌',
|
||||
description='用于获取 JWT Bearer 令牌,需要以表单的形式提交',
|
||||
tokenUrl="/api/user/session",
|
||||
)
|
||||
|
||||
SECRET_KEY = ''
|
||||
Reference in New Issue
Block a user