Skip to content

Commit

Permalink
(feat) Add Craft 5 (#3)
Browse files Browse the repository at this point in the history
* Update to craft 5

* Run composer update

* Support craft 4

* composer update
  • Loading branch information
f-elix authored Aug 13, 2024
1 parent 13d8f7b commit f046055
Show file tree
Hide file tree
Showing 3 changed files with 4,125 additions and 2,797 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ composer require deuxhuithuit/craft-admin-panel-controllers

It will add 3 endpoints:

1. /actions/admin-panel/dashboard/redirect
2. /actions/admin-panel/auth/check
3. /actions/admin-panel/edit/redirect?site={entry.site}&uri={entry.uri}
1. /actions/admin-panel-controllers/dashboard/redirect
2. /actions/admin-panel-controllers/auth/check
3. /actions/admin-panel-controllers/edit/redirect?site={entry.site}&uri={entry.uri}

For the auth check to work in headless mode, `sameSiteCookieValue` in `general.php` has to be set to `none`.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "deuxhuithuit/craft-admin-panel-controllers",
"description": "Adds controller to show the admin panel in headless mode",
"type": "craft-plugin",
"version": "1.0.3",
"version": "2.0.0",
"keywords": [
"admin",
"control panel",
Expand All @@ -23,7 +23,7 @@
},
"require": {
"php": "8.1.*|8.2.*|8.3.*",
"craftcms/cms": "^4.4.0"
"craftcms/cms": "^4.5.0|^5.0.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit f046055

Please sign in to comment.