1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-11 01:22:48 +00:00

major file refactor - fix disconnecting bug

This commit is contained in:
2017-06-30 20:23:05 -05:00
parent 03fa82b2a2
commit de6332e89c
39 changed files with 73 additions and 28 deletions

View File

@@ -28,11 +28,11 @@ func registerRoutes(router *fasthttprouter.Router) {
router.GET("/soundlist", handlers.SoundList)
router.PUT("/upload", handlers.FileUpload)
router.ServeFiles("/static/*filepath", "./static")
router.ServeFiles("/static/*filepath", "./dist/static")
router.ServeFiles("/sounds/*filepath", config.Config.SoundsPath)
router.NotFound = func(ctx *fasthttp.RequestCtx) {
fasthttp.ServeFile(ctx, "./index.html")
fasthttp.ServeFile(ctx, "./dist/index.html")
}
}