From bb38ab47a888b7d32738587aa114572f18553765 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Wed, 25 Mar 2020 06:34:06 +0200 Subject: [PATCH] Added docs --- app/app.php | 18 ------------------ app/init.php | 8 +++++++- 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/app/app.php b/app/app.php index 97ac33942..16f8421a7 100644 --- a/app/app.php +++ b/app/app.php @@ -7,8 +7,6 @@ global $env, $utopia, $request, $response, $register, $consoleDB, $project, $dom use Utopia\App; use Utopia\Request; -use Utopia\Response; -use Utopia\Validator\Range; use Utopia\View; use Utopia\Exception; use Utopia\Domains\Domain; @@ -407,23 +405,7 @@ $utopia->get('/.well-known/acme-challenge') -$utopia->get('/v1/proxy') - ->label('scope', 'public') - ->label('docs', false) - ->action( - function () use ($response, $console, $clients) { - $view = new View(__DIR__.'/views/proxy.phtml'); - $view - ->setParam('routes', '') - ->setParam('clients', array_merge($clients, $console->getAttribute('clients', []))) - ; - $response - ->setContentType(Response::CONTENT_TYPE_HTML) - ->removeHeader('X-Frame-Options') - ->send($view->render()); - } - ); $name = APP_NAME; diff --git a/app/init.php b/app/init.php index 6a1a6853c..af7257394 100644 --- a/app/init.php +++ b/app/init.php @@ -1,6 +1,12 @@