api/todos/print get -> post
This commit is contained in:
parent
5b6063aa31
commit
a73a806fb2
@ -118,7 +118,7 @@ def write_todos(todos: TodoList, auth_result: str = Security(auth.verify)):
|
|||||||
# return {"result": "success"}
|
# return {"result": "success"}
|
||||||
|
|
||||||
|
|
||||||
@app.get("/api/todos/print")
|
@app.post("/api/todos/print")
|
||||||
def print_todos(action: PrintAction, auth_result: str = Security(auth.verify)):
|
def print_todos(action: PrintAction, auth_result: str = Security(auth.verify)):
|
||||||
"""A valid access token is required to access this route"""
|
"""A valid access token is required to access this route"""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user