Skip to content

Conversation

@dev-msp
Copy link
Owner

@dev-msp dev-msp commented May 20, 2025

This commit introduces a new route / to the server that serves a simple HTML page.

The changes include:

  • A new HTML template file server/templates/index.html.
  • A new handler function serve_index_page in server/src/web.rs that reads the template and serves it.
  • Registration of the serve_index_page handler to the / route.
  • A unit test test_serve_index_page_success to verify the functionality of the new route, ensuring it returns the correct HTML content and content type.

@dev-msp dev-msp force-pushed the feat/add-minimal-webpage branch 2 times, most recently from 5476213 to 121831a Compare May 20, 2025 22:00
google-labs-jules bot and others added 2 commits May 20, 2025 18:04
This commit introduces a new route `/` to the server that serves a simple HTML page.

The changes include:
- A new HTML template file `server/templates/index.html`.
- A new handler function `serve_index_page` in `server/src/web.rs` that reads the template and serves it.
- Registration of the `serve_index_page` handler to the `/` route.
- A unit test `test_serve_index_page_success` to verify the functionality of the new route, ensuring it returns the correct HTML content and content type.
*   Fix path to `index.html` template
*   Use `ContentType` enum for setting response headers
*   Simplify test assertions
@dev-msp dev-msp force-pushed the feat/add-minimal-webpage branch from 121831a to af3ffd9 Compare May 20, 2025 22:04
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.

1 participant