mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
change work dir
This commit is contained in:
parent
ce850f5e59
commit
08b54b5bbb
31 changed files with 260 additions and 259 deletions
|
@ -1,24 +0,0 @@
|
|||
package api
|
||||
|
||||
import (
|
||||
"github.com/0xJacky/Nginx-UI/model"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/unknwon/com"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func GetFileBackupList(c *gin.Context) {
|
||||
path := c.Query("path")
|
||||
backups := model.GetBackupList(path)
|
||||
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"backups": backups,
|
||||
})
|
||||
}
|
||||
|
||||
func GetFileBackup(c *gin.Context) {
|
||||
id := c.Param("id")
|
||||
backup := model.GetBackup(com.StrTo(id).MustInt())
|
||||
|
||||
c.JSON(http.StatusOK, backup)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue