mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
13 lines
221 B
Go
13 lines
221 B
Go
package config
|
|
|
|
import (
|
|
"github.com/0xJacky/Nginx-UI/internal/nginx"
|
|
"github.com/gin-gonic/gin"
|
|
"net/http"
|
|
)
|
|
|
|
func GetBasePath(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{
|
|
"base_path": nginx.GetConfPath(),
|
|
})
|
|
}
|