Skip to content

Conversation

@gquarles
Copy link
Owner

@gquarles gquarles commented Oct 24, 2024

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.

2 participants