Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit bfa63f1

Browse files
committed
Move all routes JSON definitions inside core.ajaxplorer/routes/ folder
1 parent 9a8fd54 commit bfa63f1

File tree

6 files changed

+3
-3
lines changed

6 files changed

+3
-3
lines changed

core/src/core/src/pydio/Core/Http/Rest/ApiRouter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function __construct($base, $cacheOptions = []){
6666
*/
6767
public function configureRoutes(\FastRoute\RouteCollector &$r){
6868

69-
$configObject = json_decode(file_get_contents(AJXP_INSTALL_PATH . "/" . AJXP_DOCS_FOLDER . "/api2.json"), true);
69+
$configObject = json_decode(file_get_contents(AJXP_INSTALL_PATH . "/" . AJXP_PLUGINS_FOLDER . "/core.ajaxplorer/routes/api2.json"), true);
7070
foreach ($configObject["paths"] as $path => $methods){
7171
foreach($methods as $method => $apiData){
7272
if(preg_match('/\{path\}/', $path)){

core/src/core/src/pydio/Core/Http/TopLevelRouter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function __construct($cacheOptions = []){
6969
public function configureRoutes($base, RouteCollector &$r){
7070

7171
$allMethods = ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'TRACE', 'OPTIONS', 'CONNECT', 'PATCH', 'PROPFIND', 'PROPPATCH', 'MKCOL', 'COPY', 'MOVE', 'LOCK', 'UNLOCK'];
72-
$file = AJXP_INSTALL_PATH."/".AJXP_PLUGINS_FOLDER."/core.ajaxplorer/routes.json";
72+
$file = AJXP_INSTALL_PATH."/".AJXP_PLUGINS_FOLDER."/core.ajaxplorer/routes/main.json";
7373
$textContent = file_get_contents($file);
7474
$textContent = str_replace("%PUBLIC_BASEURI%", ConfService::getGlobalConf("PUBLIC_BASEURI"), $textContent);
7575
$textContent = str_replace("%WEBDAV_BASEURI%", ConfService::getGlobalConf("WEBDAV_BASEURI"), $textContent);

core/src/core/src/pydio/Core/Http/Wopi/Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function __construct($base, $cacheOptions = []){
6464
*/
6565
public function configureRoutes(RouteCollector &$r){
6666

67-
$configObject = json_decode(file_get_contents(AJXP_INSTALL_PATH . "/" . AJXP_DOCS_FOLDER . "/wopi.json"), true);
67+
$configObject = json_decode(file_get_contents(AJXP_INSTALL_PATH . "/" . AJXP_PLUGINS_FOLDER . "/core.ajaxplorer/routes/wopi.json"), true);
6868

6969
foreach ($configObject["paths"] as $path => $methods){
7070
foreach($methods as $method => $apiData){

0 commit comments

Comments
 (0)