Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for adding endpoints to server conditionally #3588

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

lonvia
Copy link
Member

@lonvia lonvia commented Nov 14, 2024

The list of 'routes' that a API implementation supports is now returned by a function which also gets access to the database. That required moving the whole setup into startup callbacks because database calls can only be made in asynchronous context.

Main use case now is to disable the search endpoint when the database was imported with --reverse-only.

Fixes #3583.

@lonvia lonvia merged commit 3acd7df into osm-search:master Nov 14, 2024
9 checks passed
@lonvia lonvia deleted the optional-reverse-api branch November 14, 2024 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERROR: relation "search_name" does not exist at character 1161 when importing with --reverse-only
1 participant