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

server: add a RoutePrefix option #26

Merged
merged 1 commit into from
Jul 16, 2024
Merged

server: add a RoutePrefix option #26

merged 1 commit into from
Jul 16, 2024

Conversation

creachadair
Copy link
Member

In some cases it is useful to run TailSQL on a server that already has other
endpoints. To support this, add a RoutePrefix option: When this is set, it will
be prepended to the the UI, API, and static file routes handled by the tailsql
server.

  • Add tests to exercise prefixed routes.
  • Plumb the prefix into the UI template and use it for static files.
  • Fix an absolute path in the style sheet.
  • Fix an absolute path in the CSV download script.
  • Log a prefixed route in the example CLI.

In some cases it is useful to run TailSQL on a server that already has other
endpoints. To support this, add a RoutePrefix option: When this is set, it will
be prepended to the the UI, API, and static file routes handled by the tailsql
server.

- Add tests to exercise prefixed routes.
- Plumb the prefix into the UI template and use it for static files.
- Fix an absolute path in the style sheet.
- Fix an absolute path in the CSV download script.
- Log a prefixed route in the example CLI.
@creachadair creachadair requested a review from maisem July 16, 2024 01:04
@@ -186,7 +186,7 @@ div.action {
.action .ctrl:before {
display: none;
}
.action .ctrl:-webkit-details-marker {
.action .ctrl::-webkit-details-marker {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an unrelated syntax issue I just happened to notice while testing.

@creachadair creachadair merged commit a802ea4 into main Jul 16, 2024
1 check passed
@creachadair creachadair deleted the mjf/prefix-mux branch July 16, 2024 01:56
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.

2 participants