initial commit

This commit is contained in:
lennyaiko
2025-03-27 11:29:36 +01:00
commit 8e2d371218
35 changed files with 548 additions and 0 deletions
View File
Binary file not shown.
Binary file not shown.
+8
View File
@@ -0,0 +1,8 @@
import requests
from flask import current_app
def get_headers():
return {
"Authorization": f"Bearer {current_app.config['JWT_SECRET_KEY']}",
"Content-Type": "application/json"
}
+13
View File
@@ -0,0 +1,13 @@
import logging
# Configure logging
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s - %(levelname)s - %(message)s",
handlers=[
# logging.StreamHandler(), # Log to console
logging.FileHandler("app.log", mode='a') # Log to file
]
)
logger = logging.getLogger("DetectionService")