Spaces:
Running
Running
nothere990
commited on
Commit
•
7ee79c5
1
Parent(s):
f3bf738
update main.py
Browse files
main.py
CHANGED
@@ -255,6 +255,12 @@ def encrypt_key(api_key: str) -> str:
|
|
255 |
encrypted_key = cipher_suite.encrypt(api_key.encode())
|
256 |
return encrypted_key.decode()
|
257 |
|
|
|
|
|
|
|
|
|
|
|
|
|
258 |
@app.get("/some-endpoint")
|
259 |
async def some_endpoint(api_key: str = Depends(validate_api_key_porno)):
|
260 |
return {"message": "Access granted"}
|
|
|
255 |
encrypted_key = cipher_suite.encrypt(api_key.encode())
|
256 |
return encrypted_key.decode()
|
257 |
|
258 |
+
|
259 |
+
@app.get("/status")
|
260 |
+
def status():
|
261 |
+
return {"message": "running"}
|
262 |
+
|
263 |
+
|
264 |
@app.get("/some-endpoint")
|
265 |
async def some_endpoint(api_key: str = Depends(validate_api_key_porno)):
|
266 |
return {"message": "Access granted"}
|