@flutry/cli 1.0.14 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22,7 +22,7 @@ function normalizeName(name) {
|
|
|
22
22
|
}
|
|
23
23
|
function routeTemplate(className, fileName) {
|
|
24
24
|
return [
|
|
25
|
-
"import { Router } from '
|
|
25
|
+
"import { Router } from '@flutry/server';",
|
|
26
26
|
'',
|
|
27
27
|
`export default class ${className}Route extends Router {`,
|
|
28
28
|
' constructor() {',
|
|
@@ -41,7 +41,7 @@ function serviceTemplate(className) {
|
|
|
41
41
|
}
|
|
42
42
|
function modelTemplate(className, fileName) {
|
|
43
43
|
return [
|
|
44
|
-
"import { Model, DataTypes, Sequelize } from '
|
|
44
|
+
"import { Model, DataTypes, Sequelize } from '@flutry/database-sequlize';",
|
|
45
45
|
'',
|
|
46
46
|
`export type ${className}ModelType = {`,
|
|
47
47
|
' id: string;',
|