Updated to latest aero
This commit is contained in:
parent
0c167e4851
commit
d6075f55b9
5
api.go
5
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 {
|
||||
|
2
app.go
2
app.go
@ -3,7 +3,7 @@ package main
|
||||
import (
|
||||
"io/ioutil"
|
||||
|
||||
"github.com/aerojs/aero"
|
||||
"github.com/aerogo/aero"
|
||||
)
|
||||
|
||||
var app = aero.New()
|
||||
|
Loading…
Reference in New Issue
Block a user