feat: add hc api

This commit is contained in:
Zhiqiang Li
2023-03-28 15:40:03 +08:00
parent 9e9e033a88
commit 7435ed8d88

View File

@@ -8,5 +8,13 @@ import (
// registerRoute registers all routes
func registerRoute(r *gin.Engine) {
// https://platform.openai.com/docs/api-reference
r.Any("*path", azure.Proxy)
r.HEAD("/", func(c *gin.Context) {
c.Status(200)
})
r.Any("/health", func(c *gin.Context) {
c.Status(200)
})
r.Any("/v1/*path", azure.Proxy)
}