1
0

base_path.go 221 B

12345678910111213
  1. package config
  2. import (
  3. "github.com/0xJacky/Nginx-UI/internal/nginx"
  4. "github.com/gin-gonic/gin"
  5. "net/http"
  6. )
  7. func GetBasePath(c *gin.Context) {
  8. c.JSON(http.StatusOK, gin.H{
  9. "base_path": nginx.GetConfPath(),
  10. })
  11. }