You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
509 B
26 lines
509 B
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 }
|