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

Make handler arguments optional #87

Merged
merged 6 commits into from
Nov 11, 2024
Merged

Conversation

Valerioageno
Copy link
Member

@Valerioageno Valerioageno commented Nov 11, 2024

Context & Description

This PR makes the (2nd, ...) handlers arguments optional.

Prev:

#[tuono_lib::handler]
async fn redirect_to_goat(_req: Request, _fetch: Client) -> Response {
    ...
}

After:
Prev:

#[tuono_lib::handler]
async fn redirect_to_goat(_req: Request) -> Response {
   ...
}

@Valerioageno Valerioageno merged commit 607da92 into main Nov 11, 2024
11 of 12 checks passed
@Valerioageno Valerioageno deleted the make-handler-arguments-optional branch November 11, 2024 20:52
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