You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be good to have the ability to assign routes to variables...
Something like:
huma.Get(api, "/confirm/{token}", userapi.ConfirmEmailHandler).AssignTo(&route.ConfirmEmail)
// and use it likeemailConfirmationLink:=baseUrl+route.ConfirmEmail(user.EmailConfirmationToken)
SendEmailConfirmation(user.Name, emailConfirmationLink)
The text was updated successfully, but these errors were encountered:
huma.Get(api, "/confirm/{token}", userapi.ConfirmEmailHandler).AssignTo(&route.ConfirmEmail)
// and use it likeemailConfirmationLink:=baseUrl+route.ConfirmEmail.Path(user.EmailConfirmationToken)
SendEmailConfirmation(user.Name, emailConfirmationLink)
// or/andemailConfirmationLink:=route.ConfirmEmail.Url(baseUrl, user.EmailConfirmationToken)
SendEmailConfirmation(user.Name, emailConfirmationLink)
@bioform is this feature request mostly about rendering URLs? It seems like you could probably use a third-party URL template rendering library for this, something like:
Is there a reason you need this in the core Huma library instead? If you don't want an additional dependency you could write a quick/simple string replace implementation.
It would be good to have the ability to assign routes to variables...
Something like:
The text was updated successfully, but these errors were encountered: