mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
18 lines
334 B
Go
18 lines
334 B
Go
package system
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/0xJacky/Nginx-UI/internal/self_check"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func SelfCheck(c *gin.Context) {
|
|
report := self_check.Run()
|
|
c.JSON(http.StatusOK, report)
|
|
}
|
|
|
|
func SelfCheckFix(c *gin.Context) {
|
|
result := self_check.AttemptFix(c.Param("name"))
|
|
c.JSON(http.StatusOK, result)
|
|
}
|