respond_to correction
This commit is contained in:
parent
1c2cee539d
commit
abebf60861
|
@ -392,8 +392,10 @@ sub delete {
|
||||||
}
|
}
|
||||||
return $c->respond_to(
|
return $c->respond_to(
|
||||||
json => {
|
json => {
|
||||||
success => true,
|
json => {
|
||||||
msg => $msg
|
success => true,
|
||||||
|
msg => $msg
|
||||||
|
}
|
||||||
},
|
},
|
||||||
any => sub {
|
any => sub {
|
||||||
$c->render(
|
$c->render(
|
||||||
|
@ -407,8 +409,10 @@ sub delete {
|
||||||
my $msg = $c->l('Could not find the file. Are you sure of the URL and the token?');
|
my $msg = $c->l('Could not find the file. Are you sure of the URL and the token?');
|
||||||
return $c->respond_to(
|
return $c->respond_to(
|
||||||
json => {
|
json => {
|
||||||
success => false,
|
json => {
|
||||||
msg => $msg
|
success => false,
|
||||||
|
msg => $msg
|
||||||
|
}
|
||||||
},
|
},
|
||||||
any => sub {
|
any => sub {
|
||||||
$c->render(
|
$c->render(
|
||||||
|
@ -423,8 +427,10 @@ sub delete {
|
||||||
my $msg = $c->l('Could not delete the file. You are not authenticated.');
|
my $msg = $c->l('Could not delete the file. You are not authenticated.');
|
||||||
return $c->respond_to(
|
return $c->respond_to(
|
||||||
json => {
|
json => {
|
||||||
success => false,
|
json => {
|
||||||
msg => $msg
|
success => false,
|
||||||
|
msg => $msg
|
||||||
|
}
|
||||||
},
|
},
|
||||||
any => sub {
|
any => sub {
|
||||||
$c->render(
|
$c->render(
|
||||||
|
|
Loading…
Reference in New Issue