2016-11-22 03:34:59 +00:00
|
|
|
package search
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/aerogo/aero"
|
|
|
|
)
|
|
|
|
|
2017-06-16 23:25:02 +00:00
|
|
|
// Get search page.
|
2016-11-22 03:34:59 +00:00
|
|
|
func Get(ctx *aero.Context) string {
|
2017-06-02 14:17:58 +00:00
|
|
|
// titleCount := 0
|
|
|
|
// animeCount := 0
|
2016-11-22 03:34:59 +00:00
|
|
|
|
2017-06-02 14:17:58 +00:00
|
|
|
// // let info: any = await bluebird.props({
|
|
|
|
// // popular: arn.db.get('Cache', 'popularAnime'),
|
|
|
|
// // stats: arn.db.get('Cache', 'animeStats')
|
|
|
|
// // })
|
2016-11-22 03:34:59 +00:00
|
|
|
|
2017-06-02 14:17:58 +00:00
|
|
|
// // return response.render({
|
|
|
|
// // user,
|
|
|
|
// // popularAnime: info.popular.anime,
|
|
|
|
// // animeCount: info.stats.animeCount,
|
|
|
|
// // titleCount: info.stats.titleCount,
|
|
|
|
// // anime: null
|
|
|
|
// // })
|
2016-11-22 03:34:59 +00:00
|
|
|
|
2017-06-02 14:17:58 +00:00
|
|
|
// popular, _ := arn.GetPopularCache()
|
2016-11-22 03:34:59 +00:00
|
|
|
|
2017-06-02 14:17:58 +00:00
|
|
|
// return ctx.HTML(components.Search(popular.Anime, titleCount, animeCount))
|
|
|
|
return ctx.HTML("Coming soon.")
|
2016-11-22 03:34:59 +00:00
|
|
|
}
|