backend: iplement marks search
This commit is contained in:
parent
23a00d2c06
commit
59d092c9d0
2 changed files with 62 additions and 54 deletions
|
@ -51,8 +51,8 @@ def new_mark(mark: Mark):
|
|||
|
||||
|
||||
@app.post("/api/marks")
|
||||
def search_marks(part: str):
|
||||
raise HTTPException(status_code=501, detail="Method is not implemented yet!")
|
||||
def search_marks(query: Mark):
|
||||
return database.search_mark(query)
|
||||
|
||||
|
||||
@app.post("/api/thumb")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue