seagull-js/seagull

View on GitHub
examples/helloworld/src/routes/page_route.ts

Summary

Maintainability
A
40 mins
Test Coverage
import { Route, RouteContext } from '@seagull/routes'

export default class PageRoute extends Route {
  static path = '/page'
  static async handler(this: RouteContext) {
    this.render('HelloPage', { name: 'John' })
  }
}