1
0
Fork 0
mirror of synced 2024-09-28 15:31:43 +12:00

Fix router function execution logging

This commit is contained in:
Matej Bačo 2024-09-05 10:17:30 +00:00
parent f9992c2f64
commit fbe824af10

View file

@ -97,6 +97,9 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo
$type = $route->getAttribute('resourceType');
if ($type === 'function') {
$utopia->getRoute()?->label('sdk.namespace', 'functions');
$utopia->getRoute()?->label('sdk.method', 'createExecution');
if (System::getEnv('_APP_OPTIONS_FUNCTIONS_FORCE_HTTPS', 'disabled') === 'enabled') { // Force HTTPS
if ($request->getProtocol() !== 'https') {
if ($request->getMethod() !== Request::METHOD_GET) {