feat(backend): important update
All checks were successful
Publish docker image / Publish (push) Successful in 2m20s

This commit is contained in:
Ashhhleyyy 2024-02-18 18:03:48 +00:00
parent 4daa4f064c
commit 07e9ba3543
Signed by: ash
GPG key ID: 83B789081A0878FB

View file

@ -23,6 +23,11 @@ app.add_middleware(
allow_headers="*",
)
def index():
return {
'🏳️‍⚧️': 'trans rights!',
}
@app.post('/api/codes')
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.