Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
change debug back
Browse files Browse the repository at this point in the history
  • Loading branch information
rubben-88 committed Mar 27, 2024
1 parent 34cf075 commit 3b62611
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
app.include_router(subject_router, prefix="/api")
app.include_router(group_router, prefix="/api")

DEBUG = True # Should always be false in repo
DEBUG = False # Should always be false in repo

if DEBUG:
from fastapi.middleware.cors import CORSMiddleware

origins = [
"https://localhost",
"https://localhost:8000",
"https://localhost:8080",
"http://localhost:5173",
]

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/utils/ApiFetch.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const DEBUG: boolean = true; // should always be false on the repo.
const DEBUG: boolean = false; // should always be false on the repo.

export default function apiFetch(url: string, options?: RequestInit) {
if (typeof options === 'undefined') {
Expand Down

0 comments on commit 3b62611

Please sign in to comment.