You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
463 B
Go
23 lines
463 B
Go
package v2
|
|
|
|
import (
|
|
"github.com/1Panel-dev/1Panel/agent/app/api/v2/helper"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// @Tags Logs
|
|
// @Summary Load system log files
|
|
// @Success 200 {array} string
|
|
// @Security ApiKeyAuth
|
|
// @Security Timestamp
|
|
// @Router /logs/system/files [get]
|
|
func (b *BaseApi) GetSystemFiles(c *gin.Context) {
|
|
data, err := logService.ListSystemLogFile()
|
|
if err != nil {
|
|
helper.InternalServer(c, err)
|
|
return
|
|
}
|
|
|
|
helper.SuccessWithData(c, data)
|
|
}
|