]> source.dussan.org Git - nextcloud-server.git/commit
Allow ocs/v2.php/cloud/... routes 691/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Mon, 1 Aug 2016 14:37:48 +0000 (16:37 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 8 Aug 2016 13:01:26 +0000 (15:01 +0200)
commit63f6d2d558f4b999f3851482122f3e3589ce4cfc
tree2acfd1860aee66dfd0bfaafbb7ad71dc0d400374
parent70eef2a82e1f7a08e8783af16927c21e59d71ccb
Allow ocs/v2.php/cloud/... routes

One of the possibilities of the old OCS API is that you can define the
url yourself.

This PR makes this possible again by adding an optional root elemenet to
the route. Routes are thus:

.../ocs/v2.php/<root>/<url>

By default <root> = apps/<app>

This will allow for example the provisioning API etc to be in
../ovs/v2/php/cloud/users
lib/private/AppFramework/Routing/RouteConfig.php
lib/private/Route/Router.php
tests/lib/AppFramework/Routing/RoutingTest.php