filegate/web/ui/browser.go

20 lines
321 B
Go

package ui
import (
"net/http"
"github.com/gin-gonic/gin"
"git.jmbit.de/filegate/filegate/utils"
"git.jmbit.de/filegate/filegate/web/templates"
)
func getBrowser(c *gin.Context) {
id := c.Param("id")
c.HTML(
http.StatusOK,
"",
templates.Browser(utils.GenMetaContent(c), "Filegate Browser", id, nil),
)
}