v1 stub
parent
0b1900a7e0
commit
20db498168
|
|
@ -3,6 +3,7 @@ package main
|
|||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"path"
|
||||
"strings"
|
||||
)
|
||||
|
||||
|
|
@ -11,5 +12,15 @@ func isV1(r *http.Request) bool {
|
|||
}
|
||||
|
||||
func (s *S) serveV1(w http.ResponseWriter, r *http.Request) error {
|
||||
return fmt.Errorf("not impl: v1")
|
||||
switch path.Join(r.Method, r.URL.Path) {
|
||||
case "PUT/v1/state/" + s.Session(r).ID + "/party":
|
||||
return s.serveV1PutParty(w, r)
|
||||
default:
|
||||
http.NotFound(w, r)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *S) serveV1PutParty(w http.ResponseWriter, r *http.Request) error {
|
||||
return fmt.Errorf("not impl")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue