diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-07-11 02:59:35 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-07-11 02:59:40 +0300 |
commit | 864e73cdc75a2fb0e4fad500f649dae2343c10a8 (patch) | |
tree | 6ce6762c6be72c98592a32fe0bed4f2ce751d544 /handler/admin/AdminRequestHandler.php | |
parent | cb13ea239b9f1ca6aea43125d5694d5a55dcd287 (diff) |
rewrite css and js assets building
Diffstat (limited to 'handler/admin/AdminRequestHandler.php')
-rw-r--r-- | handler/admin/AdminRequestHandler.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/handler/admin/AdminRequestHandler.php b/handler/admin/AdminRequestHandler.php index 04b7cde..5a6bd12 100644 --- a/handler/admin/AdminRequestHandler.php +++ b/handler/admin/AdminRequestHandler.php @@ -8,8 +8,8 @@ use Response; class AdminRequestHandler extends \RequestHandler { public function beforeDispatch(): ?Response { - $this->skin->static[] = '/css/admin.css'; - $this->skin->static[] = '/js/admin.js'; + $this->skin->static[] = 'css/admin.css'; + $this->skin->static[] = 'js/admin.js'; if (!($this instanceof Login) && !admin::isAdmin()) throw new \ForbiddenException('looks like you are not admin'); |