feat(backend): important update
All checks were successful
Publish docker image / Publish (push) Successful in 2m20s
All checks were successful
Publish docker image / Publish (push) Successful in 2m20s
This commit is contained in:
parent
4daa4f064c
commit
07e9ba3543
1 changed files with 5 additions and 0 deletions
|
@ -23,6 +23,11 @@ app.add_middleware(
|
||||||
allow_headers="*",
|
allow_headers="*",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def index():
|
||||||
|
return {
|
||||||
|
'🏳️⚧️': 'trans rights!',
|
||||||
|
}
|
||||||
|
|
||||||
@app.post('/api/codes')
|
@app.post('/api/codes')
|
||||||
def submit_code(date: str, time: str, activity: str, space: str, submission: CodeSubmission, db: sqlite3.Cursor=Depends(get_db)):
|
def submit_code(date: str, time: str, activity: str, space: str, submission: CodeSubmission, db: sqlite3.Cursor=Depends(get_db)):
|
||||||
# TODO: validate parameters meet expected form.
|
# TODO: validate parameters meet expected form.
|
||||||
|
|
Loading…
Reference in a new issue