2018-04-25 18:03:35 +00:00
|
|
|
package searchroutes
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/aerogo/layout"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/search"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/search/multisearch"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Register registers the page routes.
|
|
|
|
func Register(l *layout.Layout) {
|
|
|
|
// Search
|
|
|
|
l.Page("/search/*term", search.Get)
|
|
|
|
l.Page("/empty-search", search.GetEmptySearch)
|
|
|
|
l.Page("/anime-search/*term", search.Anime)
|
|
|
|
l.Page("/character-search/*term", search.Characters)
|
2018-12-06 04:27:01 +00:00
|
|
|
l.Page("/posts-search/*term", search.Posts)
|
|
|
|
l.Page("/threads-search/*term", search.Threads)
|
2018-04-25 18:03:35 +00:00
|
|
|
l.Page("/soundtrack-search/*term", search.SoundTracks)
|
|
|
|
l.Page("/user-search/*term", search.Users)
|
2018-11-12 07:52:07 +00:00
|
|
|
l.Page("/amv-search/*term", search.AMVs)
|
2018-04-25 18:03:35 +00:00
|
|
|
l.Page("/company-search/*term", search.Companies)
|
|
|
|
|
|
|
|
// Multi-search
|
|
|
|
l.Page("/multisearch/anime", multisearch.Anime)
|
|
|
|
}
|