6 "github.com/gin-gonic/gin"
9 type directory struct {
10 Name string `json:"name"`
11 Fullpath string `json:"fullpath"`
14 type apiDirectory struct {
15 Dir []directory `json:"dir"`
18 // browseFS used to browse local file system
19 func (s *APIService) browseFS(c *gin.Context) {
21 response := apiDirectory{
23 directory{Name: "TODO SEB"},
27 c.JSON(http.StatusOK, response)