Minor changes
This commit is contained in:
7
main.go
7
main.go
@ -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)
|
||||
|
Reference in New Issue
Block a user