Minor changes

This commit is contained in:
2017-06-04 01:17:00 +02:00
parent 13c87d65d8
commit dac19952db
5 changed files with 11 additions and 3 deletions

View File

@ -1,6 +1,7 @@
package main
import (
"fmt"
"io/ioutil"
"github.com/aerogo/aero"
@ -51,6 +52,12 @@ func main() {
return ctx.JSON(app.Config.Manifest)
})
app.Get("/ip", func(ctx *aero.Context) string {
ip := ctx.RealIP()
fmt.Println(ip)
return ctx.Text(ip)
})
// Scripts
scripts, _ := ioutil.ReadFile("temp/scripts.js")
js := string(scripts)