Made /api page

This commit is contained in:
2017-07-01 14:03:10 +02:00
parent 715686ddee
commit 6e41c08e60
5 changed files with 41 additions and 26 deletions

View File

@ -1,10 +1,7 @@
package admin
import (
"sort"
"github.com/aerogo/aero"
"github.com/animenotifier/arn"
"github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/utils"
)
@ -17,13 +14,5 @@ func Get(ctx *aero.Context) string {
return ctx.Redirect("/")
}
types := []string{}
for typeName := range arn.DB.Types() {
types = append(types, typeName)
}
sort.Strings(types)
return ctx.HTML(components.Admin(user, types))
return ctx.HTML(components.Admin(user))
}