add reserve unreserve endpoints

This commit is contained in:
tylen
2025-11-02 14:55:49 +02:00
parent cf9b0d53c1
commit d1eeea0800
7 changed files with 228 additions and 60 deletions

View File

@@ -10,6 +10,7 @@ from flask_cors import CORS
from dotenv import load_dotenv
from db_client import DBClient
from user import registerUserEndpoints
from hosting import registerHostingEndpoints
import logging
load_dotenv()
@@ -23,6 +24,7 @@ allowed_origins = [
CORS(app, resources={r"*": {"origins": allowed_origins}}) # Only allow example.com
database = DBClient(app)
registerUserEndpoints(app=app, database=database)
registerHostingEndpoints(app=app, database=database)
if __name__ == "__main__":
app.run(debug=True)