randydev commited on
Commit
a54ec61
·
verified ·
1 Parent(s): 125a91a

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +9 -0
main.py CHANGED
@@ -116,6 +116,15 @@ async def get_image(filename: str):
116
 
117
  return FileResponse(file_path)
118
 
 
 
 
 
 
 
 
 
 
119
  """"
120
  @fast_app.on_event("startup")
121
  async def startup_event():
 
116
 
117
  return FileResponse(file_path)
118
 
119
+ @fast_app.get("/original/license")
120
+ async def license_private():
121
+ file_path = f"AknUserbotLicense_RAW_AKNUSERBOT-20250411-D81B4FBB.pdf"
122
+
123
+ if not os.path.exists(file_path):
124
+ return {"error": "File not found"}
125
+
126
+ return FileResponse(file_path)
127
+
128
  """"
129
  @fast_app.on_event("startup")
130
  async def startup_event():