mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-20 23:26:40 +00:00
refactor: make challenge pages return the challenge component
This means that challenge pages will return only the little bit that actually matters, not the entire component. Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
@@ -21,10 +21,6 @@ func BaseWithChallengeAndOGTags(title string, body templ.Component, impressum *c
|
||||
}, ogTags, localizer), nil
|
||||
}
|
||||
|
||||
func Index(localizer *localization.SimpleLocalizer) templ.Component {
|
||||
return index(localizer)
|
||||
}
|
||||
|
||||
func ErrorPage(msg, mail string, localizer *localization.SimpleLocalizer) templ.Component {
|
||||
return errorPage(msg, mail, localizer)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user