Added /scripts.js for Cloudflare tests
This commit is contained in:
parent
db13da7922
commit
f552a803db
@ -19,6 +19,11 @@ func init() {
|
|||||||
return js
|
return js
|
||||||
})
|
})
|
||||||
|
|
||||||
|
app.Get("/scripts.js", func(ctx *aero.Context) string {
|
||||||
|
ctx.SetResponseHeader("Content-Type", "application/javascript")
|
||||||
|
return js
|
||||||
|
})
|
||||||
|
|
||||||
// Web manifest
|
// Web manifest
|
||||||
app.Get("/manifest.json", func(ctx *aero.Context) string {
|
app.Get("/manifest.json", func(ctx *aero.Context) string {
|
||||||
return ctx.JSON(app.Config.Manifest)
|
return ctx.JSON(app.Config.Manifest)
|
||||||
|
Loading…
Reference in New Issue
Block a user