update docs

This commit is contained in:
Michael Yang
2023-11-15 15:22:12 -08:00
parent 652d90e1c7
commit 54f92f01cb
2 changed files with 30 additions and 9 deletions

View File

@@ -764,6 +764,7 @@ func Serve(ln net.Listener, allowOrigins []string) error {
r.DELETE("/api/delete", DeleteModelHandler)
r.POST("/api/show", ShowModelHandler)
r.POST("/api/blobs/:digest", CreateBlobHandler)
r.HEAD("/api/blobs/:digest", HeadBlobHandler)
for _, method := range []string{http.MethodGet, http.MethodHead} {
r.Handle(method, "/", func(c *gin.Context) {
@@ -773,8 +774,6 @@ func Serve(ln net.Listener, allowOrigins []string) error {
r.Handle(method, "/api/tags", ListModelsHandler)
}
r.HEAD("/api/blobs/:digest", HeadBlobHandler)
log.Printf("Listening on %s (version %s)", ln.Addr(), version.Version)
s := &http.Server{
Handler: r,