git.cweiske.de
/
ouya-imagestore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
app details (image list)
[ouya-imagestore.git]
/
src
/
imagestore
/
Controller
/
Api.php
diff --git
a/src/imagestore/Controller/Api.php
b/src/imagestore/Controller/Api.php
index 42f045aa175e6ba4ba573390959f421de16c78eb..91e4373b4a5a9841d572e98d7c745cc942d3711b 100644
(file)
--- a/
src/imagestore/Controller/Api.php
+++ b/
src/imagestore/Controller/Api.php
@@
-9,11
+9,13
@@
class Controller_Api
$this->error(404, 'Only API v1 supported');
}
$this->error(404, 'Only API v1 supported');
}
- $actionName = substr($uri, 3);
+ $rest = substr($uri, 3);
+ $parts = explode('/', $rest);
+ $actionName = $parts[0];
$class = 'imagestore\Controller_Api_' . ucfirst($actionName);
$action = new $class();
$class = 'imagestore\Controller_Api_' . ucfirst($actionName);
$action = new $class();
- $action->handle();
+ $action->handle(
substr($rest, strlen($parts[0]) + 1)
);
}
}
?>
}
}
?>