TinySkin/server/server.go
2023-09-01 21:07:22 +08:00

21 lines
418 B
Go

package server
import (
"net/http"
"github.com/julienschmidt/httprouter"
)
func NewYggdrasil(r *httprouter.Router) error {
r.POST("/api/authserver/authenticate", nil)
return nil
}
func warpCtJSON(handle httprouter.Handle) httprouter.Handle {
return func(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
w.Header().Set("Content-Type", "application/json; charset=utf-8")
handle(w, r, p)
}
}