Updated to latest aero version
This commit is contained in:
parent
ac2ec39fd0
commit
7eeba84cb2
@ -52,19 +52,19 @@ func configureAssets(app *aero.Application) {
|
|||||||
// Images
|
// Images
|
||||||
app.Get("/images/*file", func(ctx *aero.Context) string {
|
app.Get("/images/*file", func(ctx *aero.Context) string {
|
||||||
ctx.Response().Header().Set("Access-Control-Allow-Origin", "*")
|
ctx.Response().Header().Set("Access-Control-Allow-Origin", "*")
|
||||||
return ctx.File("images" + ctx.Get("file"))
|
return ctx.File("images/" + ctx.Get("file"))
|
||||||
})
|
})
|
||||||
|
|
||||||
// Videos
|
// Videos
|
||||||
app.Get("/videos/*file", func(ctx *aero.Context) string {
|
app.Get("/videos/*file", func(ctx *aero.Context) string {
|
||||||
ctx.Response().Header().Set("Access-Control-Allow-Origin", "*")
|
ctx.Response().Header().Set("Access-Control-Allow-Origin", "*")
|
||||||
return ctx.File("videos" + ctx.Get("file"))
|
return ctx.File("videos/" + ctx.Get("file"))
|
||||||
})
|
})
|
||||||
|
|
||||||
// Audio
|
// Audio
|
||||||
app.Get("/audio/*file", func(ctx *aero.Context) string {
|
app.Get("/audio/*file", func(ctx *aero.Context) string {
|
||||||
ctx.Response().Header().Set("Access-Control-Allow-Origin", "*")
|
ctx.Response().Header().Set("Access-Control-Allow-Origin", "*")
|
||||||
return ctx.File("audio" + ctx.Get("file"))
|
return ctx.File("audio/" + ctx.Get("file"))
|
||||||
})
|
})
|
||||||
|
|
||||||
// Anime sitemap
|
// Anime sitemap
|
||||||
|
Loading…
Reference in New Issue
Block a user