Skip to content

Commit aecb780

Browse files
committed
update
1 parent df5f3ad commit aecb780

File tree

3 files changed

+1035
-1
lines changed

3 files changed

+1035
-1
lines changed

pkg/chals/chals.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ func (s *Handler) Handle() (string, http.Handler) {
197197
switch u := n.Challenge.(type) {
198198
case *chalgen.Node_Base:
199199
switch t := u.Base.Type.(type) {
200+
case *chalgen.Challenge_Audioplayer:
201+
templ.Handler(tmpl.Page(tmpl.AudioPlayer(t.Audioplayer))).ServeHTTP(w, r)
202+
return
200203
case *chalgen.Challenge_Data:
201204
w.Header().Set("Content-Type", "text/plain; charset=UTF-8")
202205
w.Write([]byte(t.Data.Data))

0 commit comments

Comments
 (0)