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

chore: use function, not decorator, to server resources #9

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

EvanHahn
Copy link
Contributor

@EvanHahn EvanHahn commented Sep 4, 2024

This replaces reply.sendResource with a sendResource function. That lets us avoid (1) adding an unnecessary decorator (2) some ts-ignores.

I also moved a try/catch to be a little more targeted, which is not strictly related.

This replaces `reply.sendResource` with a `sendResource` function. That
lets us avoid (1) adding an unnecessary decorator (2) some `ts-ignore`s.

I also moved a `try`/`catch` to be a little more targeted, which is
not strictly related.
@EvanHahn EvanHahn requested a review from gmaclennan September 4, 2024 22:09
Copy link
Member

@gmaclennan gmaclennan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, I was stuck on the "fastify approach" and this works better for what we need.

@gmaclennan gmaclennan merged commit 7ed98c5 into main Sep 5, 2024
@gmaclennan gmaclennan deleted the fn-not-decorator-in-server branch September 5, 2024 08:33
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