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

created serve-static middleware for node #5

Merged
merged 11 commits into from
Sep 29, 2022
Merged

Conversation

that-ambuj
Copy link
Contributor

It is the serve-static implementation as requested in issue #3. there are no major changes. I have exported both serve and serveStatic from index.ts.

src/serve-static.ts Outdated Show resolved Hide resolved
@yusukebe
Copy link
Member

And, please write the tests for Serve Static middleware. If there is no test, we will not accept the PR.

@that-ambuj
Copy link
Contributor Author

I have written the tests and fixed the import from hono. Please review the PR. Thanks!

@that-ambuj
Copy link
Contributor Author

Also should I update honojs.dev for this middleware?

test/serve-static.test.ts Outdated Show resolved Hide resolved
test/serve-static.test.ts Show resolved Hide resolved
test/serve-static.test.ts Show resolved Hide resolved
test/assets/static/data.json Show resolved Hide resolved
@yusukebe
Copy link
Member

Hi @that-ambuj !

Nice! I've commented on some points, please fix these.

Also should I update honojs.dev for this middleware?

You don't have to do it now.

@that-ambuj
Copy link
Contributor Author

Changes have been made!

test/assets/static/data.json Outdated Show resolved Hide resolved
test/serve-static.test.ts Show resolved Hide resolved
@yusukebe
Copy link
Member

Two reviews are still pending.

@that-ambuj
Copy link
Contributor Author

Should I make more changes?

@yusukebe
Copy link
Member

@that-ambuj

Nothing! All done!
Thank you for all your hard work for a long time. I will merge it now.

@yusukebe yusukebe merged commit 433695a into honojs:main Sep 29, 2022
@that-ambuj
Copy link
Contributor Author

Thanks a lot for letting me work on this!

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