Skip to content

Add /html endpoint to serve HTML files - #7

Open
gquarles wants to merge 1 commit into
masterfrom
add-html-endpoint
Open

Add /html endpoint to serve HTML files#7
gquarles wants to merge 1 commit into
masterfrom
add-html-endpoint

Conversation

@gquarles

@gquarles gquarles commented Oct 24, 2024

Copy link
Copy Markdown
Owner

Add a new endpoint /html/:name to serve HTML files from the uploads directory.

  • Use res.sendFile to serve the HTML file.
  • Construct the file path using path.join.

For more details, open the Copilot Workspace session.

Add a new endpoint `/html/:name` to serve HTML files from the `uploads` directory.

* Use `res.sendFile` to serve the HTML file.
* Construct the file path using `path.join`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/gquarles/quickhost?shareId=XXXX-XXXX-XXXX-XXXX).
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