Rename bulk-progress to bulk_progress

This commit is contained in:
Alex Ling 2020-12-14 11:54:25 +00:00
parent 341b586cb3
commit 4f6df5b9a3
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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!