diff --git a/application/frontend/src/types.ts b/application/frontend/src/types.ts index 8847dc445..a3c905b35 100644 --- a/application/frontend/src/types.ts +++ b/application/frontend/src/types.ts @@ -37,7 +37,7 @@ export interface GapAnalysisPathStart { paths: Record; extra: number; weakLinks: Record; - +} export interface PaginatedResponse { standards: Document[]; total_pages: number; diff --git a/application/tests/web_main_test.py b/application/tests/web_main_test.py index 5569ed166..4dd3fdbe2 100644 --- a/application/tests/web_main_test.py +++ b/application/tests/web_main_test.py @@ -706,4 +706,4 @@ def test_gap_analysis_weak_links_response(self, db_mock) -> None: headers={"Content-Type": "application/json"}, ) self.assertEqual(200, response.status_code) - self.assertEqual(expected, json.loads(response.data)) \ No newline at end of file + self.assertEqual(expected, json.loads(response.data)) diff --git a/application/web/web_main.py b/application/web/web_main.py index 83fedf93d..8d003c97d 100644 --- a/application/web/web_main.py +++ b/application/web/web_main.py @@ -215,6 +215,7 @@ def find_document_by_tag() -> Any: logger.info("tags aborting 404") abort(404, "Tag does not exist") + @app.route("/rest/v1/map_analysis", methods=["GET"]) @cache.cached(timeout=50, query_string=True) def gap_analysis() -> Any: