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

Corrected code snippet on frontpage #14

Merged
merged 1 commit into from
Feb 17, 2023

Conversation

boedlen
Copy link
Contributor

@boedlen boedlen commented Feb 16, 2023

There's a small typo in the snippet on the frontpage.

public class MyEndpoint : Endpoint<MyRequest, MyResponse>
{
		public override void Configure()
		{
				Post("/hello/world");
				AllowAnonymous();
		}

		public override async Task HandleAsync(MyRequest r, CancellationToken c)
		{
				await SendAsync(new()
				{
						FullName = $"{r.FirstName} {r.LastName}",
						Message = "Welcome to FastEndpoints..."				
				});
		)
}

but it should be

public class MyEndpoint : Endpoint<MyRequest, MyResponse>
{
		public override void Configure()
		{
				Post("/hello/world");
				AllowAnonymous();
		}

		public override async Task HandleAsync(MyRequest r, CancellationToken c)
		{
				await SendAsync(new()
				{
						FullName = $"{r.FirstName} {r.LastName}",
						Message = "Welcome to FastEndpoints..."				
				});
		}  // <!-- Here
}

@dj-nitehawk dj-nitehawk changed the base branch from main to dev February 17, 2023 06:34
@dj-nitehawk dj-nitehawk merged commit 20ff429 into FastEndpoints:dev Feb 17, 2023
@FastEndpoints FastEndpoints deleted a comment from netlify bot Feb 17, 2023
@dj-nitehawk
Copy link
Member

good catch ;-)
cheers mate!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants