2019-05-09 18:54:39 +12:00
|
|
|
<?php
|
2019-09-07 05:10:41 +12:00
|
|
|
|
2022-05-27 01:23:49 +12:00
|
|
|
use Appwrite\Utopia\Response;
|
2020-06-29 05:31:21 +12:00
|
|
|
use Utopia\App;
|
2019-05-09 18:54:39 +12:00
|
|
|
|
2023-06-02 22:58:31 +12:00
|
|
|
App::get('/console/*')
|
2022-10-31 23:50:19 +13:00
|
|
|
->alias('/')
|
2023-06-03 09:22:28 +12:00
|
|
|
->alias('auth/*')
|
2022-10-31 21:53:36 +13:00
|
|
|
->alias('/invite')
|
|
|
|
->alias('/login')
|
|
|
|
->alias('/recover')
|
2023-06-03 09:22:28 +12:00
|
|
|
->alias('/register/*')
|
2022-10-12 03:36:39 +13:00
|
|
|
->groups(['web'])
|
2019-05-09 18:54:39 +12:00
|
|
|
->label('permission', 'public')
|
|
|
|
->label('scope', 'home')
|
2022-06-22 22:51:49 +12:00
|
|
|
->inject('response')
|
2022-10-31 21:53:36 +13:00
|
|
|
->action(function (Response $response) {
|
|
|
|
$fallback = file_get_contents(__DIR__ . '/../../../console/index.html');
|
|
|
|
$response->html($fallback);
|
|
|
|
});
|