Add routes for current BaseModules

This commit is contained in:
Philipp Holzer 2019-05-01 21:29:04 +02:00
parent b6b9e57488
commit 07ba1b200c
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
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]);