mirror of
https://github.com/zeke-chin/cursor-api.git
synced 2025-09-27 03:55:58 +08:00
15 lines
213 B
Go
15 lines
213 B
Go
package api
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func NewServer() *gin.Engine {
|
|
r := gin.Default()
|
|
setupRoutes(r)
|
|
return r
|
|
}
|
|
|
|
func setupRoutes(r *gin.Engine) {
|
|
r.POST("/v1/chat/completions", handleChat)
|
|
} |