Updated to latest aero

This commit is contained in:
Eduard Urbach 2016-11-09 22:11:49 +09:00
parent 0c167e4851
commit d6075f55b9
3 changed files with 4 additions and 5 deletions

5
api.go
View File

@ -2,11 +2,10 @@ package main
import (
"sort"
"strconv"
"strings"
"time"
"github.com/aerojs/aero"
"github.com/aerogo/aero"
"github.com/animenotifier/arn"
)
@ -27,7 +26,7 @@ func init() {
})
app.Get("/api/anime/:id", func(ctx *aero.Context) string {
id, _ := strconv.Atoi(ctx.Get("id"))
id, _ := ctx.GetInt("id")
anime, err := arn.GetAnime(id)
if err != nil {

2
app.go
View File

@ -3,7 +3,7 @@ package main
import (
"io/ioutil"
"github.com/aerojs/aero"
"github.com/aerogo/aero"
)
var app = aero.New()

View File

@ -3,7 +3,7 @@ package main
import (
"strconv"
"github.com/aerojs/aero"
"github.com/aerogo/aero"
"github.com/animenotifier/arn"
)