You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
471 B
Go
19 lines
471 B
Go
package nginx
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
func InitRouter(r *gin.RouterGroup) {
|
|
r.POST("ngx/build_config", BuildNginxConfig)
|
|
r.POST("ngx/tokenize_config", TokenizeNginxConfig)
|
|
r.POST("ngx/format_code", FormatNginxConfig)
|
|
r.POST("nginx/reload", Reload)
|
|
r.POST("nginx/restart", Restart)
|
|
r.POST("nginx/test", Test)
|
|
r.GET("nginx/status", Status)
|
|
r.POST("nginx_log", GetNginxLogPage)
|
|
}
|
|
|
|
func InitNginxLogRouter(r *gin.RouterGroup) {
|
|
r.GET("nginx_log", Log)
|
|
}
|