fix(lib/challenge): allow challenges to register HTTP routes (#620)
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
parent
5f3861ab37
commit
5a7499ea3b
6 changed files with 16 additions and 5 deletions
|
|
@ -24,8 +24,8 @@ type Impl struct {
|
|||
Algorithm string
|
||||
}
|
||||
|
||||
func (i *Impl) Fail(w http.ResponseWriter, r *http.Request) error {
|
||||
return nil
|
||||
func (i *Impl) Setup(mux *http.ServeMux) {
|
||||
/* no implementation required */
|
||||
}
|
||||
|
||||
func (i *Impl) Issue(r *http.Request, lg *slog.Logger, rule *policy.Bot, challenge string, ogTags map[string]string) (templ.Component, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue