Skip to content

[Added Feature] Optional defualt index page for the "serve" method#98

Open
felixfong227 wants to merge 3 commits intopredetermined:mainfrom
felixfong227:feat/static-index-page
Open

[Added Feature] Optional defualt index page for the "serve" method#98
felixfong227 wants to merge 3 commits intopredetermined:mainfrom
felixfong227:feat/static-index-page

Conversation

@felixfong227
Copy link
Contributor

Allowing users to define a default index page such as index.html when creating a new static route

Example:

app.serve("public", "/", {
  index: "index.html",
});
GET /

OK 200
<index.html>

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