lib/src/cli/templates/routes.ts
garrettmills 1d5056b753
All checks were successful
continuous-integration/drone/push Build is passing
Setup eslint and enforce rules
2021-06-02 22:36:25 -05:00

26 lines
509 B
TypeScript

import {Template} from '../Template'
/**
* Template that generates a new route definition file in app/http/routes.
*/
const templateRoutes: Template = {
name: 'routes',
fileSuffix: '.routes.ts',
description: 'Create a file for route definitions.',
baseAppPath: ['http', 'routes'],
render(name: string) {
return `import {Route} from '@extollo/lib'
/*
* ${name} Routes
* -------------------------------
* Put some description here.
*/
`
},
}
export { templateRoutes }