Avatar downloader

This commit is contained in:
2017-06-12 20:06:31 +02:00
parent 72857972fe
commit 586befcb1a
9 changed files with 185 additions and 6 deletions

View File

@ -76,6 +76,10 @@ func main() {
return ctx.File("images/cover/" + ctx.Get("file") + format)
})
app.Get("/images/elements/:file", func(ctx *aero.Context) string {
return ctx.File("images/elements/" + ctx.Get("file"))
})
// For benchmarks
app.Get("/hello", func(ctx *aero.Context) string {
return ctx.Text("Hello World")