Commit 74e92d12 authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

add basic `/` route for server

parent ea809df1
......@@ -125,6 +125,10 @@ func generate(c *gin.Context) {
func Serve(ln net.Listener) error {
r := gin.Default()
r.GET("/", func(c *gin.Context) {
c.String(http.StatusOK, "Ollama is running")
})
r.POST("api/pull", func(c *gin.Context) {
var req api.PullRequest
if err := c.ShouldBindJSON(&req); err != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment