Deploy client-cms to caddy container
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
@@ -18,18 +18,18 @@ import (
|
||||
_ "nixcn-cms/docs"
|
||||
)
|
||||
|
||||
// @title NixCN CMS API
|
||||
// @version 1.0
|
||||
// @description API Docs based on Gin framework
|
||||
// @termsOfService http://swagger.io/terms/
|
||||
// @contact.name API Support
|
||||
// @contact.url http://www.swagger.io/support
|
||||
// @contact.email support@swagger.io
|
||||
// @license.name Apache 2.0
|
||||
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
// @host localhost:8000
|
||||
// @BasePath /api/v1
|
||||
// @schemes http https
|
||||
// @title NixCN CMS API
|
||||
// @version 1.0
|
||||
// @description API Docs based on Gin framework
|
||||
// @termsOfService http://swagger.io/terms/
|
||||
// @contact.name API Support
|
||||
// @contact.url http://www.swagger.io/support
|
||||
// @contact.email support@swagger.io
|
||||
// @license.name Apache 2.0
|
||||
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
// @host localhost:8000
|
||||
// @BasePath /api/v1
|
||||
// @schemes http https
|
||||
func Start(ctx context.Context) {
|
||||
if !viper.GetBool("server.debug_mode") {
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
|
||||
Reference in New Issue
Block a user