1
0
Fork 0
mirror of synced 2024-09-28 15:31:43 +12:00

Splited controllers to client vs admin vs web

This commit is contained in:
Eldad Fux 2019-12-15 05:03:43 +02:00
parent ae0bc3f2a5
commit d59cfd7a68
8 changed files with 8 additions and 8 deletions

View file

@ -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')

View file

@ -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')

View file

@ -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')

View file

@ -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',

View file

@ -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());

View file

@ -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')

View file

@ -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()));

View file

@ -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')