tdd ish
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user