Major overhaul to the Notes/Issues. Minor tweaks to the UI. Added Profile photos
This commit is contained in:
@@ -50,6 +50,15 @@ async def update_note(
|
||||
return service.update_note(note_id, body)
|
||||
|
||||
|
||||
@router.patch("/{note_id}/status", response_model=NoteInDB)
|
||||
async def toggle_note_status(
|
||||
note_id: str,
|
||||
body: NoteUpdate,
|
||||
_user: TokenPayload = Depends(require_permission("equipment", "edit")),
|
||||
):
|
||||
return service.update_note(note_id, body)
|
||||
|
||||
|
||||
@router.delete("/{note_id}", status_code=204)
|
||||
async def delete_note(
|
||||
note_id: str,
|
||||
|
||||
Reference in New Issue
Block a user