1
0
Fork 0
mirror of synced 2024-07-07 15:36:19 +12:00
appwrite/app/controllers/web/console.php
2023-06-02 14:22:28 -07:00

21 lines
494 B
PHP

<?php
use Appwrite\Utopia\Response;
use Utopia\App;
App::get('/console/*')
->alias('/')
->alias('auth/*')
->alias('/invite')
->alias('/login')
->alias('/recover')
->alias('/register/*')
->groups(['web'])
->label('permission', 'public')
->label('scope', 'home')
->inject('response')
->action(function (Response $response) {
$fallback = file_get_contents(__DIR__ . '/../../../console/index.html');
$response->html($fallback);
});