mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
13 lines
246 B
Go
13 lines
246 B
Go
package api
|
|
|
|
import (
|
|
"github.com/0xJacky/Nginx-UI/internal/translation"
|
|
"github.com/gin-gonic/gin"
|
|
"net/http"
|
|
)
|
|
|
|
func GetTranslation(c *gin.Context) {
|
|
code := c.Param("code")
|
|
|
|
c.JSON(http.StatusOK, translation.GetTranslation(code))
|
|
}
|