go-paste/src/routes/public.go

12 lines
380 B
Go
Raw Normal View History

2018-03-14 07:18:19 -06:00
package routes
import "sour.is/x/toolbox/httpsrv"
func init() {
httpsrv.AssetRegister("paste", httpsrv.AssetRoutes{
2018-06-26 10:51:21 -06:00
{Name: "Assets", Path: "/", HandlerFunc: httpsrv.FsHtml5(assetFS())},
2018-03-14 07:18:19 -06:00
})
}
2020-03-23 19:26:27 -06:00
//go:generate go run github.com/sour-is/go-assetfs/cmd/assetfs -pkg routes -prefix ../../ ../../public/ ../../public/static/css/ ../../public/static/js/ ../../public/static/media/