Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
323c76cd
Unverified
Commit
323c76cd
authored
5 years ago
by
Roeland Jago Douma
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #17859 from nextcloud/bugfix/app-init
Fix app class setup warnings
parents
46344870
3c092993
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/federation/appinfo/routes.php
+43
-48
43 additions, 48 deletions
apps/federation/appinfo/routes.php
lib/public/AppFramework/App.php
+1
-1
1 addition, 1 deletion
lib/public/AppFramework/App.php
with
44 additions
and
49 deletions
apps/federation/appinfo/routes.php
+
43
−
48
View file @
323c76cd
...
...
@@ -22,53 +22,48 @@
*
*/
$application
=
new
\OCA\Federation\AppInfo\Application
();
$application
->
registerRoutes
(
$this
,
[
'routes'
=>
[
[
'name'
=>
'Settings#addServer'
,
'url'
=>
'/trusted-servers'
,
'verb'
=>
'POST'
],
[
'name'
=>
'Settings#removeServer'
,
'url'
=>
'/trusted-servers/{id}'
,
'verb'
=>
'DELETE'
],
[
'name'
=>
'Settings#autoAddServers'
,
'url'
=>
'/auto-add-servers'
,
'verb'
=>
'POST'
],
return
[
'routes'
=>
[
[
'name'
=>
'Settings#addServer'
,
'url'
=>
'/trusted-servers'
,
'verb'
=>
'POST'
],
[
'name'
=>
'Settings#removeServer'
,
'url'
=>
'/trusted-servers/{id}'
,
'verb'
=>
'DELETE'
],
[
'name'
=>
'Settings#autoAddServers'
,
'url'
=>
'/auto-add-servers'
,
'verb'
=>
'POST'
],
],
'ocs'
=>
[
// old endpoints, only used by Nextcloud and ownCloud
[
'name'
=>
'OCSAuthAPI#getSharedSecretLegacy'
,
'url'
=>
'/api/v1/shared-secret'
,
'verb'
=>
'GET'
,
],
[
'name'
=>
'OCSAuthAPI#requestSharedSecretLegacy'
,
'url'
=>
'/api/v1/request-shared-secret'
,
'verb'
=>
'POST'
,
],
// new endpoints, published as public api
[
'name'
=>
'OCSAuthAPI#getSharedSecret'
,
'root'
=>
'/cloud'
,
'url'
=>
'/shared-secret'
,
'verb'
=>
'GET'
,
],
'ocs'
=>
[
// old endpoints, only used by Nextcloud and ownCloud
[
'name'
=>
'OCSAuthAPI#getSharedSecretLegacy'
,
'url'
=>
'/api/v1/shared-secret'
,
'verb'
=>
'GET'
,
],
[
'name'
=>
'OCSAuthAPI#requestSharedSecretLegacy'
,
'url'
=>
'/api/v1/request-shared-secret'
,
'verb'
=>
'POST'
,
],
// new endpoints, published as public api
[
'name'
=>
'OCSAuthAPI#getSharedSecret'
,
'root'
=>
'/cloud'
,
'url'
=>
'/shared-secret'
,
'verb'
=>
'GET'
,
],
[
'name'
=>
'OCSAuthAPI#requestSharedSecret'
,
'root'
=>
'/cloud'
,
'url'
=>
'/shared-secret'
,
'verb'
=>
'POST'
,
],
[
'name'
=>
'OCSAuthAPI#requestSharedSecret'
,
'root'
=>
'/cloud'
,
'url'
=>
'/shared-secret'
,
'verb'
=>
'POST'
,
],
]
)
;
]
,
]
;
This diff is collapsed.
Click to expand it.
lib/public/AppFramework/App.php
+
1
−
1
View file @
323c76cd
...
...
@@ -95,7 +95,7 @@ class App {
}
}
if
(
!
$setUpViaQuery
)
{
if
(
!
$setUpViaQuery
&&
$applicationClassName
!==
\OCP\AppFramework\App
::
class
)
{
\OC
::
$server
->
getLogger
()
->
logException
(
$e
,
[
'app'
=>
$appName
,
]);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment