Updated to latest aero version
This commit is contained in:
parent
ac2ec39fd0
commit
7eeba84cb2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user