-
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6795 from getkirby/v5/changes/develop
Changes
- Loading branch information
Showing
146 changed files
with
5,634 additions
and
4,533 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
use Kirby\Api\Controller\Changes; | ||
use Kirby\Cms\App; | ||
use Kirby\Cms\Find; | ||
|
||
return [ | ||
[ | ||
'pattern' => '(:all)/changes/discard', | ||
'method' => 'POST', | ||
'action' => function (string $path) { | ||
return Changes::discard( | ||
model: Find::parent($path), | ||
); | ||
} | ||
], | ||
[ | ||
'pattern' => '(:all)/changes/publish', | ||
'method' => 'POST', | ||
'action' => function (string $path) { | ||
return Changes::publish( | ||
model: Find::parent($path), | ||
input: App::instance()->request()->get() | ||
); | ||
} | ||
], | ||
[ | ||
'pattern' => '(:all)/changes/save', | ||
'method' => 'POST', | ||
'action' => function (string $path) { | ||
return Changes::save( | ||
model: Find::parent($path), | ||
input: App::instance()->request()->get() | ||
); | ||
} | ||
], | ||
]; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.