wiki/public/public.go

19 lines
375 B
Go
Raw Normal View History

2017-02-13 22:21:57 +01:00
package public
import (
"github.com/GeertJohan/go.rice"
"net/http"
)
const (
CSSMountpoint = "/css/"
JSMountpoint = "/js/"
)
var (
cssBox = rice.MustFindBox("css")
jsBox = rice.MustFindBox("js")
JSHandler = http.StripPrefix(JSMountpoint, http.FileServer(jsBox.HTTPBox()))
CSSHandler = http.StripPrefix(CSSMountpoint, http.FileServer(cssBox.HTTPBox()))
)