26 lines
802 B
Go
Raw Normal View History

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)
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)
l.Page("/company-search/*term", search.Companies)
// Multi-search
l.Page("/multisearch/anime", multisearch.Anime)
}