Splited controllers to client vs admin vs web
This commit is contained in:
parent
ae0bc3f2a5
commit
d59cfd7a68
8 changed files with 8 additions and 8 deletions
|
@ -16,7 +16,7 @@ use Database\Validator\UID;
|
||||||
use DeviceDetector\DeviceDetector;
|
use DeviceDetector\DeviceDetector;
|
||||||
use GeoIp2\Database\Reader;
|
use GeoIp2\Database\Reader;
|
||||||
|
|
||||||
include_once 'shared/api.php';
|
include_once '../shared/api.php';
|
||||||
|
|
||||||
$utopia->get('/v1/users')
|
$utopia->get('/v1/users')
|
||||||
->desc('List Users')
|
->desc('List Users')
|
|
@ -13,7 +13,7 @@ use Database\Validator\Authorization;
|
||||||
use DeviceDetector\DeviceDetector;
|
use DeviceDetector\DeviceDetector;
|
||||||
use GeoIp2\Database\Reader;
|
use GeoIp2\Database\Reader;
|
||||||
|
|
||||||
include_once 'shared/api.php';
|
include_once '../shared/api.php';
|
||||||
|
|
||||||
$utopia->get('/v1/account')
|
$utopia->get('/v1/account')
|
||||||
->desc('Get Account')
|
->desc('Get Account')
|
|
@ -18,7 +18,7 @@ use Database\Validator\UID;
|
||||||
use Template\Template;
|
use Template\Template;
|
||||||
use OpenSSL\OpenSSL;
|
use OpenSSL\OpenSSL;
|
||||||
|
|
||||||
include_once 'shared/api.php';
|
include_once '../shared/api.php';
|
||||||
|
|
||||||
$utopia->post('/v1/auth/register')
|
$utopia->post('/v1/auth/register')
|
||||||
->desc('Register')
|
->desc('Register')
|
|
@ -15,7 +15,7 @@ use BaconQrCode\Renderer\Image\ImagickImageBackEnd;
|
||||||
use BaconQrCode\Renderer\RendererStyle\RendererStyle;
|
use BaconQrCode\Renderer\RendererStyle\RendererStyle;
|
||||||
use BaconQrCode\Writer;
|
use BaconQrCode\Writer;
|
||||||
|
|
||||||
include_once 'shared/api.php';
|
include_once '../shared/api.php';
|
||||||
|
|
||||||
$types = [
|
$types = [
|
||||||
'browsers' => include __DIR__.'/../config/avatars/browsers.php',
|
'browsers' => include __DIR__.'/../config/avatars/browsers.php',
|
|
@ -19,7 +19,7 @@ use Database\Validator\Authorization;
|
||||||
use Database\Exception\Authorization as AuthorizationException;
|
use Database\Exception\Authorization as AuthorizationException;
|
||||||
use Database\Exception\Structure as StructureException;
|
use Database\Exception\Structure as StructureException;
|
||||||
|
|
||||||
include_once 'shared/api.php';
|
include_once '../shared/api.php';
|
||||||
|
|
||||||
$isDev = (App::ENV_TYPE_PRODUCTION !== $utopia->getEnv());
|
$isDev = (App::ENV_TYPE_PRODUCTION !== $utopia->getEnv());
|
||||||
|
|
|
@ -6,7 +6,7 @@ use Utopia\App;
|
||||||
use Utopia\Locale\Locale;
|
use Utopia\Locale\Locale;
|
||||||
use GeoIp2\Database\Reader;
|
use GeoIp2\Database\Reader;
|
||||||
|
|
||||||
include_once 'shared/api.php';
|
include_once '../shared/api.php';
|
||||||
|
|
||||||
$utopia->get('/v1/locale')
|
$utopia->get('/v1/locale')
|
||||||
->desc('Get User Locale')
|
->desc('Get User Locale')
|
|
@ -22,7 +22,7 @@ use Storage\Compression\Algorithms\GZIP;
|
||||||
use Resize\Resize;
|
use Resize\Resize;
|
||||||
use OpenSSL\OpenSSL;
|
use OpenSSL\OpenSSL;
|
||||||
|
|
||||||
include_once 'shared/api.php';
|
include_once '../shared/api.php';
|
||||||
|
|
||||||
Storage::addDevice('local', new Local('app-'.$project->getUid()));
|
Storage::addDevice('local', new Local('app-'.$project->getUid()));
|
||||||
|
|
|
@ -18,7 +18,7 @@ use Database\Validator\Authorization;
|
||||||
use Template\Template;
|
use Template\Template;
|
||||||
use Auth\Auth;
|
use Auth\Auth;
|
||||||
|
|
||||||
include_once 'shared/api.php';
|
include_once '../shared/api.php';
|
||||||
|
|
||||||
$utopia->get('/v1/teams')
|
$utopia->get('/v1/teams')
|
||||||
->desc('List Teams')
|
->desc('List Teams')
|
Loading…
Reference in a new issue