20 lines
619 B
Go
Raw Normal View History

package companyroutes
import (
2019-06-03 03:20:17 +00:00
"github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/pages/companies"
"github.com/animenotifier/notify.moe/pages/company"
2019-06-03 03:20:17 +00:00
"github.com/animenotifier/notify.moe/utils/page"
)
// Register registers the page routes.
2019-06-03 03:20:17 +00:00
func Register(app *aero.Application) {
// Companies
2019-06-03 03:20:17 +00:00
page.Get(app, "/company/:id", company.Get)
page.Get(app, "/company/:id/edit", company.Edit)
page.Get(app, "/company/:id/history", company.History)
page.Get(app, "/companies", companies.Popular)
page.Get(app, "/companies/from/:index", companies.Popular)
page.Get(app, "/companies/all", companies.All)
}