seagull-js/seagull

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

Summary

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

export default class PageRoute extends Route {
  static path = '/failure'
  static async handler(this: RouteContext) {
    this.error('Goodbye, cruel world.')
  }
}