Added video

This commit is contained in:
2017-11-13 18:07:25 +01:00
parent b365c458fd
commit 2feeebae5e
5 changed files with 14 additions and 1 deletions

View File

@ -47,6 +47,11 @@ func configureAssets(app *aero.Application) {
return ctx.File("images" + ctx.Get("file"))
})
// Videos
app.Get("/videos/*file", func(ctx *aero.Context) string {
return ctx.File("videos" + ctx.Get("file"))
})
// For benchmarks
app.Get("/hello", func(ctx *aero.Context) string {
return ctx.Text("Hello World")