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 ( import (
"sort" "sort"
"strconv"
"strings" "strings"
"time" "time"
"github.com/aerojs/aero" "github.com/aerogo/aero"
"github.com/animenotifier/arn" "github.com/animenotifier/arn"
) )
@ -27,7 +26,7 @@ func init() {
}) })
app.Get("/api/anime/:id", func(ctx *aero.Context) string { 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) anime, err := arn.GetAnime(id)
if err != nil { if err != nil {

2
app.go
View File

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

View File

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