mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 18:35:51 +02:00
refactor: project directory structure
This commit is contained in:
parent
c1193a5b8c
commit
e5a5889931
367 changed files with 710 additions and 756 deletions
13
api/translation.go
Normal file
13
api/translation.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
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))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue