From d6075f55b9a11cdaa4473ed5465d35fd93fd1eb3 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Wed, 9 Nov 2016 22:11:49 +0900 Subject: [PATCH] Updated to latest aero --- api.go | 5 ++--- app.go | 2 +- router.go | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/api.go b/api.go index d28f4899..dd755d0a 100644 --- a/api.go +++ b/api.go @@ -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 { diff --git a/app.go b/app.go index 1056bad0..34de8ce2 100644 --- a/app.go +++ b/app.go @@ -3,7 +3,7 @@ package main import ( "io/ioutil" - "github.com/aerojs/aero" + "github.com/aerogo/aero" ) var app = aero.New() diff --git a/router.go b/router.go index cde06f6a..a819e472 100644 --- a/router.go +++ b/router.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "github.com/aerojs/aero" + "github.com/aerogo/aero" "github.com/animenotifier/arn" )