1
0
Fork 0
mirror of synced 2024-05-20 20:52:36 +12:00

Added docs

This commit is contained in:
Eldad Fux 2020-03-25 06:34:06 +02:00
parent acbfcd6ddc
commit bb38ab47a8
2 changed files with 7 additions and 19 deletions

View file

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

View file

@ -1,6 +1,12 @@
<?php
// Init
/**
* Init
*
* Inializes both Appwrite API entry point, queue workers, and CLI tasks.
* Set configuration, framework resources, app constants
*
*/
if (file_exists(__DIR__.'/../vendor/autoload.php')) {
require_once __DIR__.'/../vendor/autoload.php';
}