seagull-js/seagull

View on GitHub
examples/helloworld/src/routes/crud/index.ts

Summary

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

export default class extends Route {
  static path = '/glossary'

  static async handler(this: RouteContext) {
    const list = await Term.all()
    this.render('crud/Listing', { list })
  }
}