1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-10 09:02:49 +00:00

play sounds from web ui - store uploaded sounds in database

This commit is contained in:
2018-09-12 23:36:44 -05:00
parent 325203cc5e
commit be359f7424
26 changed files with 390 additions and 245 deletions

View File

@@ -13,10 +13,10 @@ import (
// AddDownloaderRoutes -
func AddDownloaderRoutes(group *gin.RouterGroup) {
group.GET("/ytdownloader", downloaderHandler)
group.GET("/ytdownloader", getDownloaderHandler)
}
func downloaderHandler(c *gin.Context) {
func getDownloaderHandler(c *gin.Context) {
url := c.Query("url")
fileType := c.Query("fileType")