diabled admin and csr check for all route entries

This commit is contained in:
huangjx
2021-10-01 23:37:27 +08:00
parent 71dafbd94e
commit f2bca0fc24
6 changed files with 41 additions and 5 deletions

View File

@@ -69,6 +69,10 @@ class YoutubeController extends Controller
$resp['counter'] = ['youtube-dl' => count($data)];
return new JSONResponse($resp);
}
/**
* @NoAdminRequired
* @NoCSRFRequired
*/
public function Download()
{
$params = array();
@@ -96,7 +100,10 @@ class YoutubeController extends Controller
return ['error' => $this->l10n->t("failed to get any url!")];
}
}
/**
* @NoAdminRequired
* @NoCSRFRequired
*/
public function Delete()
{
$gid = $this->request->getParam('gid');