Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(feat) Add Craft 5 #3

Merged
merged 4 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading