diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..6b46e48 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,15 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + + { + "type": "msedge", + "request": "launch", + "name": "Open index.html", + "file": "/home/ben/Desktop/calender/frontend/index.html" + } + ] +} \ No newline at end of file diff --git a/backend/main.py b/backend/main.py index af6904b..39c7e84 100644 --- a/backend/main.py +++ b/backend/main.py @@ -351,4 +351,20 @@ print() print("YOU CAN NOT START THE SERVER WITH PYTHON") print("start with:") print("$ bash start_server.sh") -print() \ No newline at end of file +print() + +from fastapi.middleware.cors import CORSMiddleware + +app = FastAPI( + title="Calendar API", + description="Room based agenda system", + version="1.0" +) + +app.add_middleware( + CORSMiddleware, + allow_origins=["*"], # later vervangen door je domein + allow_credentials=True, + allow_methods=["*"], + allow_headers=["*"], +) \ No newline at end of file diff --git a/database/calendar.db b/database/calendar.db index baee7cc..0c70666 100644 Binary files a/database/calendar.db and b/database/calendar.db differ diff --git a/frontend/index.html b/frontend/index.html new file mode 100644 index 0000000..6270b6d --- /dev/null +++ b/frontend/index.html @@ -0,0 +1,876 @@ + + +
+ + + +Rooms, events & RSVP's
+API: