Allow some apps to have root URLs in their own routing file#20114
Allow some apps to have root URLs in their own routing file#20114
Conversation
| ['name' => 'requesthandlercontroller#addShare', 'url' => '/ocm/shares', 'verb' => 'POST', 'app' => 'cloud_federation_api'], | ||
| ['name' => 'requesthandlercontroller#receiveNotification', 'url' => '/ocm/notifications', 'verb' => 'POST', 'app' => 'cloud_federation_api'], | ||
| ['name' => 'pagecontroller#showCall', 'url' => '/call/{token}', 'verb' => 'GET', 'app' => 'spreed'], | ||
| ['name' => 'pagecontroller#authenticatePassword', 'url' => '/call/{token}', 'verb' => 'POST', 'app' => 'spreed'], |
There was a problem hiding this comment.
Those are now in nextcloud/spreed#3134
All other apps are in this PR
| private function processOCS(array $routes): void { | ||
| $ocsRoutes = $routes['ocs'] ?? []; | ||
| foreach ($ocsRoutes as $ocsRoute) { | ||
| $name = $ocsRoute['name']; |
There was a problem hiding this comment.
Best review this file on https://github.com/nextcloud/server/pull/20114/files?w=1
90dda67 to
12c43b3
Compare
|
Rebased |
|
Lots of failures |
12c43b3 to
e07f126
Compare
d7058c6 to
8e786e4
Compare
8e786e4 to
4bae8db
Compare
danxuliu
left a comment
There was a problem hiding this comment.
PHP CS is not happy.
Some integration and acceptance tests failures are legit, and all seem to be caused by Unable to generate a URL for the named route \"cloud_federation_api.RequestHandler.addShare\" as such route does not exist.
Should be fixed by a last rebase as it's not caused by this PR. |
4bae8db to
a0f75ae
Compare
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
ebba033 to
1b93d5f
Compare
|
SHould be good to go now? |
Lets do this and we fix stuff if it does boom |
The app-comments can be ignored, they are caused by a regression in the sidebar. The others are legit; for some reason with this pull request the Apps app and the Users app show a blank page (and in 8f650fe^ they work fine). |
which apps? |
|
aah the apps and user page |
No longer needed from what I can tell since #20114 & nextcloud/spreed#3134 Signed-off-by: Josh <josh.t.richards@gmail.com>
Follow up to prevent #20038 from spreading