Browse Source

fix route

Michael Yang 1 năm trước cách đây
mục cha
commit
31590284a7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      server/routes.go

+ 1 - 1
server/routes.go

@@ -147,7 +147,7 @@ func Serve(ln net.Listener) error {
 		c.String(http.StatusOK, "Ollama is running")
 		c.String(http.StatusOK, "Ollama is running")
 	})
 	})
 
 
-	r.POST("api/pull", pull)
+	r.POST("/api/pull", pull)
 	r.POST("/api/generate", generate)
 	r.POST("/api/generate", generate)
 
 
 	log.Printf("Listening on %s", ln.Addr())
 	log.Printf("Listening on %s", ln.Addr())