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

adjustments to soundlist end point

This commit is contained in:
2017-02-05 06:56:40 +00:00
parent d6992cbf14
commit 0448a2e755
2 changed files with 19 additions and 5 deletions

View File

@@ -28,6 +28,7 @@ func registerRoutes(router *fasthttprouter.Router) {
router.PUT("/upload", handlers.FileUpload)
router.ServeFiles("/static/*filepath", "./static")
router.ServeFiles("/sounds/*filepath", "./sounds")
router.NotFound = func(ctx *fasthttp.RequestCtx) {
fasthttp.ServeFile(ctx, "./index.html")