Remove old error models and examples from swagger spec

This commit is contained in:
Alejandro Celaya
2024-02-28 08:39:26 +01:00
parent 33729289c7
commit c4805b8152
10 changed files with 19 additions and 78 deletions

View File

@@ -30,6 +30,9 @@ class ListRedirectRulesAction extends AbstractRestAction
);
$rules = $this->ruleService->rulesForShortUrl($shortUrl);
return new JsonResponse(['redirectRules' => $rules]);
return new JsonResponse([
'defaultLongUrl' => $shortUrl->getLongUrl(),
'redirectRules' => $rules,
]);
}
}