changed formatting
This commit is contained in:
@@ -78,8 +78,6 @@ else:
|
|||||||
app = FastAPI(docs_url=None, redoc_url=None, openapi_url=None)
|
app = FastAPI(docs_url=None, redoc_url=None, openapi_url=None)
|
||||||
logger.info("Started FastAPI.")
|
logger.info("Started FastAPI.")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def _generate_license_key() -> str:
|
def _generate_license_key() -> str:
|
||||||
"""
|
"""
|
||||||
Generate a cryptographically secure token
|
Generate a cryptographically secure token
|
||||||
@@ -89,7 +87,6 @@ def _generate_license_key() -> str:
|
|||||||
for _ in range(LICENSE_KEY_PARTS)
|
for _ in range(LICENSE_KEY_PARTS)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@app.post("/license", status_code=status.HTTP_201_CREATED)
|
@app.post("/license", status_code=status.HTTP_201_CREATED)
|
||||||
async def create_license_key(
|
async def create_license_key(
|
||||||
is_active: bool = True,
|
is_active: bool = True,
|
||||||
|
|||||||
Reference in New Issue
Block a user