X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/754ff15ebd798aad0a2b7add81ea0e6001ca8625..3acd7df5c44345ad85aa97a92d582c60a4eba240:/src/nominatim_api/server/falcon/server.py?ds=sidebyside diff --git a/src/nominatim_api/server/falcon/server.py b/src/nominatim_api/server/falcon/server.py index e252e3c8..13e79311 100644 --- a/src/nominatim_api/server/falcon/server.py +++ b/src/nominatim_api/server/falcon/server.py @@ -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: