Update web.py

This commit is contained in:
akp 2022-11-08 02:24:47 +00:00
parent f6fc2d378b
commit eab2474101
No known key found for this signature in database
GPG key ID: AA5726202C8879B7

View file

@ -19,9 +19,7 @@ def new() -> flask.Flask:
view_func=_api_register_watcher,
methods=["POST"],
)
app.add_url_rule(
"/api/v1/watcher", view_func=_api_list_watched, methods=["GET"]
)
app.add_url_rule("/api/v1/watcher", view_func=_api_list_watched, methods=["GET"])
app.add_url_rule(
"/api/v1/watcher/run", view_func=_api_run_watcher, methods=["POST"]
)