Merge pull request #6079 from appwrite/fix-500-options-requests
Fix router error
This commit is contained in:
commit
02c16040ff
2 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
- Fix VCS/migration/assistant scopes [#6071](https://github.com/appwrite/appwrite/pull/6071)
|
- Fix VCS/migration/assistant scopes [#6071](https://github.com/appwrite/appwrite/pull/6071)
|
||||||
- Add missing parameters required for custom email templates [#6077](https://github.com/appwrite/appwrite/pull/6077)
|
- Add missing parameters required for custom email templates [#6077](https://github.com/appwrite/appwrite/pull/6077)
|
||||||
|
- Fix `Call to a member function label() on null` error when using a custom domain [#6079](https://github.com/appwrite/appwrite/pull/6079)
|
||||||
|
|
||||||
## Changes
|
## Changes
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ Config::setParam('cookieSamesite', Response::COOKIE_SAMESITE_NONE);
|
||||||
|
|
||||||
function router(App $utopia, Database $dbForConsole, SwooleRequest $swooleRequest, Request $request, Response $response)
|
function router(App $utopia, Database $dbForConsole, SwooleRequest $swooleRequest, Request $request, Response $response)
|
||||||
{
|
{
|
||||||
$utopia->getRoute()->label('error', __DIR__ . '/../views/general/error.phtml');
|
$utopia->getRoute()?->label('error', __DIR__ . '/../views/general/error.phtml');
|
||||||
|
|
||||||
$host = $request->getHostname() ?? '';
|
$host = $request->getHostname() ?? '';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue