13 lines
316 B
Go
13 lines
316 B
Go
package page
|
|
|
|
import (
|
|
"github.com/aerogo/aero"
|
|
"github.com/animenotifier/notify.moe/middleware"
|
|
)
|
|
|
|
// Get registers a layout rendered route and a contents-only route.
|
|
func Get(app *aero.Application, route string, handler aero.Handler) {
|
|
app.Get(route, middleware.Layout(handler))
|
|
app.Get("/_"+route, handler)
|
|
}
|