From f552a803db7f6a1b8fe1173a419d56732dd28222 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 23 Jun 2017 13:28:54 +0200 Subject: [PATCH] Added /scripts.js for Cloudflare tests --- assets.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets.go b/assets.go index fb745c3f..69cc8f80 100644 --- a/assets.go +++ b/assets.go @@ -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)