Add routes for current BaseModules

This commit is contained in:
Philipp Holzer
2019-05-01 21:29:04 +02:00
parent b6b9e57488
commit 07ba1b200c
16 changed files with 806 additions and 722 deletions

View File

@@ -25,6 +25,7 @@ class Photo extends BaseModule
public static function init()
{
$a = self::getApp();
// @TODO: Replace with parameter from router
if ($a->argc <= 1 || $a->argc > 4) {
System::httpExit(400);
}
@@ -47,6 +48,7 @@ class Photo extends BaseModule
$customsize = 0;
$photo = false;
// @TODO: Replace with parameter from router
switch($a->argc) {
case 4:
$customsize = intval($a->argv[2]);