Added /scripts.js for Cloudflare tests

This commit is contained in:
Eduard Urbach 2017-06-23 13:28:54 +02:00
parent db13da7922
commit f552a803db

View File

@ -19,6 +19,11 @@ func init() {
return js
})
app.Get("/scripts.js", func(ctx *aero.Context) string {
ctx.SetResponseHeader("Content-Type", "application/javascript")
return js
})
// Web manifest
app.Get("/manifest.json", func(ctx *aero.Context) string {
return ctx.JSON(app.Config.Manifest)