mirror of
https://github.com/stulzq/azure-openai-proxy.git
synced 2025-12-19 07:14:21 +01:00
feat: add hc api
This commit is contained in:
@@ -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)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user