This commit is contained in:
Bel LaPointe
2024-02-20 08:13:51 -07:00
parent 9686d1c7dd
commit 4241b83721
2 changed files with 53 additions and 0 deletions

View File

@@ -138,5 +138,20 @@ func (h Handler) handle(session Session, w http.ResponseWriter, r *http.Request)
http.FileServer(public).ServeHTTP(w, r)
return nil
}
switch r.URL.Path {
case "/api/v1/question":
return h.handleAPIV1Question(session, w, r)
case "/api/v1/answer":
return h.handleAPIV1Answer(session, w, r)
}
http.NotFound(w, r)
return nil
}
func (h Handler) handleAPIV1Question(session Session, w http.ResponseWriter, r *http.Request) error {
return errors.New("not impl")
}
func (h Handler) handleAPIV1Answer(session Session, w http.ResponseWriter, r *http.Request) error {
return errors.New("not impl")
}