public static function deriveAction($method, $path)
    {
        $method = strtolower($method);

        if ($method == 'get') {
            return $method;
        }

        if ($method == 'delete') {
            return $method;
        }

        if ($method == 'post' && $path == '/{urlname}') {
            return 'edit';
        }

        if ($method == 'post' && (strpos($path, '{id}') !== false || strpos($path, '{mid}') !== false)) {
            return 'edit';
        }

        if ($method == 'post') {
            return 'create';
        }

        if ($method == 'ws') {
            return 'webSocket';
        }

        if ($method == 'patch') {
            return 'edit';
        }

        return '';
    }