From 4f6df5b9a3b6a7840d94c23286e8972cea15a060 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Mon, 14 Dec 2020 11:54:25 +0000 Subject: [PATCH] Rename `bulk-progress` to `bulk_progress` --- public/js/title.js | 2 +- src/routes/api.cr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/title.js b/public/js/title.js index 7f0e0bd..f5ddc85 100644 --- a/public/js/title.js +++ b/public/js/title.js @@ -218,7 +218,7 @@ const selectedIDs = () => { const bulkProgress = (action, el) => { const tid = $(el).attr('data-id'); const ids = selectedIDs(); - const url = `${base_url}api/bulk-progress/${action}/${tid}`; + const url = `${base_url}api/bulk_progress/${action}/${tid}`; $.ajax({ type: 'POST', url: url, diff --git a/src/routes/api.cr b/src/routes/api.cr index fab0b28..ecb2f13 100644 --- a/src/routes/api.cr +++ b/src/routes/api.cr @@ -311,7 +311,7 @@ class APIRouter < Router Koa.path "tid", desc: "Title ID" Koa.body ref: "$strAry", desc: "An array of entry IDs" Koa.response 200, ref: "$result" - post "/api/bulk-progress/:action/:tid" do |env| + post "/api/bulk_progress/:action/:tid" do |env| begin username = get_username env title = (@context.library.get_title env.params.url["tid"]).not_nil!