mirror of
https://gitnet.fr/deblan/side_menu.git
synced 2025-12-17 21:02:25 +01:00
remove route unused route
This commit is contained in:
parent
9278d61719
commit
a47a8d6c63
2 changed files with 0 additions and 21 deletions
|
|
@ -128,7 +128,6 @@ class Application extends App implements IBootstrap
|
|||
protected function addAssets()
|
||||
{
|
||||
Util::addScript(self::APP_ID, 'side_menu-menu');
|
||||
// Util::addStyle(self::APP_ID, 'sideMenu');
|
||||
|
||||
$assets = [
|
||||
'stylesheet' => [
|
||||
|
|
@ -139,14 +138,6 @@ class Application extends App implements IBootstrap
|
|||
'rel' => 'stylesheet',
|
||||
],
|
||||
],
|
||||
// 'script' => [
|
||||
// 'route' => 'side_menu.Js.script',
|
||||
// 'type' => 'script',
|
||||
// 'route_attr' => 'src',
|
||||
// 'attr' => [
|
||||
// 'nonce' => $this->cspnm->getNonce(),
|
||||
// ],
|
||||
// ],
|
||||
];
|
||||
|
||||
$cache = $this->config->getAppValue(self::APP_ID, 'cache', '0');
|
||||
|
|
|
|||
|
|
@ -54,18 +54,6 @@ class JsController extends Controller
|
|||
$this->l10nFactory = $l10nFactory;
|
||||
}
|
||||
|
||||
#[NoCSRFRequired]
|
||||
#[NoAdminRequired]
|
||||
#[PublicPage]
|
||||
#[FrontpageRoute(verb: 'GET', url: '/js/script')]
|
||||
public function script(): TemplateResponse
|
||||
{
|
||||
$response = new TemplateResponse(Application::APP_ID, 'js/script', $this->getConfig(), 'blank');
|
||||
$response->addHeader('Content-Type', 'text/javascript');
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
#[NoCSRFRequired]
|
||||
#[NoAdminRequired]
|
||||
#[PublicPage]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue