]> git.openstreetmap.org Git - nominatim.git/blobdiff - src/nominatim_api/server/falcon/server.py
enable search endpoint only when search table is available
[nominatim.git] / src / nominatim_api / server / falcon / server.py
index e252e3c8925f3c34daaabfa3d493df12d609357f..13e7931102677df26599dc02b2a53d820249f64d 100644 (file)
@@ -172,7 +172,7 @@ class APIMiddleware:
         assert self.app is not None
         legacy_urls = self.api.config.get_bool('SERVE_LEGACY_URLS')
         formatter = load_format_dispatcher('v1', self.api.config.project_dir)
-        for name, func in api_impl.ROUTES:
+        for name, func in await api_impl.get_routes(self.api):
             endpoint = EndpointWrapper(name, func, self.api, formatter)
             self.app.add_route(f"/{name}", endpoint)
             if legacy_urls: