2018-04-25 18:03:35 +00:00
|
|
|
package companyroutes
|
|
|
|
|
|
|
|
import (
|
2019-06-03 03:20:17 +00:00
|
|
|
"github.com/aerogo/aero"
|
2018-04-25 18:03:35 +00:00
|
|
|
"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"
|
2018-04-25 18:03:35 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Register registers the page routes.
|
2019-06-03 03:20:17 +00:00
|
|
|
func Register(app *aero.Application) {
|
2018-04-25 18:03:35 +00:00
|
|
|
// 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)
|
2018-04-25 18:03:35 +00:00
|
|
|
}
|