api-LL3Hack / main.go
Ashad001's picture
dockerfile updaed
b8b5ccc
raw
history blame contribute delete
291 Bytes
package main
import (
"net/http"
"golangchain/api"
"github.com/gin-gonic/gin"
)
func main() {
r := gin.Default()
r.LoadHTMLGlob("templates/*")
r.GET("/", func(c *gin.Context) {
c.HTML(http.StatusOK, "index.html", nil)
})
r.POST("/chat/", api.ChatHandler)
r.Run(":7860")
}