break out ws.go

This commit is contained in:
Bel LaPointe
2024-12-14 20:37:17 -07:00
parent 0db285d4d4
commit 0b1900a7e0
3 changed files with 44 additions and 31 deletions

15
cmd/server/v1.go Normal file
View File

@@ -0,0 +1,15 @@
package main
import (
"fmt"
"net/http"
"strings"
)
func isV1(r *http.Request) bool {
return strings.HasPrefix(r.URL.Path, "/v1/")
}
func (s *S) serveV1(w http.ResponseWriter, r *http.Request) error {
return fmt.Errorf("not impl: v1")
}