Skip to content

Commit

Permalink
make flask happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jokester committed Apr 29, 2024
1 parent a74cade commit 1d92197
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/apis/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,20 +470,20 @@
mit.add_url_rule(
"/image-tasks",
methods=["POST", "OPTIONS"],
view_func=MitImageTaskApi.as_view("mit_image_tasks"),
view_func=MitImageTaskApi.as_view("mit_image_tasks_create"),
)
mit.add_url_rule(
"/image-tasks/<task_id>",
methods=["GET", "OPTIONS"],
view_func=MitImageTaskApi.as_view("mit_image_tasks"),
view_func=MitImageTaskApi.as_view("mit_image_tasks_query"),
)
mit.add_url_rule(
"/translate-tasks",
methods=["POST", "OPTIONS"],
view_func=MitTranslateTaskApi.as_view("mit_translate_tasks"),
view_func=MitTranslateTaskApi.as_view("mit_translate_tasks_create"),
)
mit.add_url_rule(
"/translate-tasks/<task_id>",
methods=["GET", "OPTIONS"],
view_func=MitTranslateTaskApi.as_view("mit_translate_tasks"),
view_func=MitTranslateTaskApi.as_view("mit_translate_tasks_query"),
)

0 comments on commit 1d92197

Please sign in to comment.