This commit is contained in:
2023-04-08 11:35:28 -05:00
parent f5a22be60c
commit af881d80b0
5 changed files with 122 additions and 35 deletions

View File

@@ -13,7 +13,7 @@ import (
ginSwagger "github.com/swaggo/gin-swagger"
)
// @title Swagger Example API
// @title DurpAPI
// @version 1.0
// @description This is a sample server celler server.
// @termsOfService http://swagger.io/terms/
@@ -69,6 +69,10 @@ func main() {
openai.GET("general", c.GeneralOpenAI)
openai.GET("travelagent", c.TravelAgentOpenAI)
}
unraid := v1.Group("/unraid")
{
unraid.GET("powerusage", c.UnraidPowerUsage)
}
}
r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
r.Run(":8080")