Updated to latest aero version

This commit is contained in:
Eduard Urbach 2018-05-31 23:20:32 +09:00
parent ac2ec39fd0
commit 7eeba84cb2

View File

@ -52,19 +52,19 @@ func configureAssets(app *aero.Application) {
// Images
app.Get("/images/*file", func(ctx *aero.Context) string {
ctx.Response().Header().Set("Access-Control-Allow-Origin", "*")
return ctx.File("images" + ctx.Get("file"))
return ctx.File("images/" + ctx.Get("file"))
})
// Videos
app.Get("/videos/*file", func(ctx *aero.Context) string {
ctx.Response().Header().Set("Access-Control-Allow-Origin", "*")
return ctx.File("videos" + ctx.Get("file"))
return ctx.File("videos/" + ctx.Get("file"))
})
// Audio
app.Get("/audio/*file", func(ctx *aero.Context) string {
ctx.Response().Header().Set("Access-Control-Allow-Origin", "*")
return ctx.File("audio" + ctx.Get("file"))
return ctx.File("audio/" + ctx.Get("file"))
})
// Anime sitemap