2018-12-06 13:27:01 +09:00

26 lines
802 B
Go

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)
l.Page("/posts-search/*term", search.Posts)
l.Page("/threads-search/*term", search.Threads)
l.Page("/soundtrack-search/*term", search.SoundTracks)
l.Page("/user-search/*term", search.Users)
l.Page("/amv-search/*term", search.AMVs)
l.Page("/company-search/*term", search.Companies)
// Multi-search
l.Page("/multisearch/anime", multisearch.Anime)
}