Serve assets with bindata

This commit is contained in:
Dan Sosedoff
2014-10-13 14:40:56 -05:00
parent 15c01e0a55
commit f848116e1b
4 changed files with 47 additions and 3 deletions

View File

@@ -88,7 +88,7 @@ func main() {
router.GET("/explain", API_ExplainQuery)
router.POST("/explain", API_ExplainQuery)
router.GET("/history", API_History)
router.Static("/static", options.Static)
router.GET("/static/:type/:name", API_ServeAsset)
fmt.Println("Starting server at 0.0.0.0:8080")
router.Run(":8080")