Browse Source

fix route

Michael Yang 1 year ago
parent
commit
31590284a7
1 changed files with 1 additions and 1 deletions
  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")
 	})
 
-	r.POST("api/pull", pull)
+	r.POST("/api/pull", pull)
 	r.POST("/api/generate", generate)
 
 	log.Printf("Listening on %s", ln.Addr())