|
|
@ -10,7 +10,7 @@ import { |
|
|
url, |
|
|
url, |
|
|
} from '@angular-devkit/schematics'; |
|
|
} from '@angular-devkit/schematics'; |
|
|
import { Exception } from '../../enums'; |
|
|
import { Exception } from '../../enums'; |
|
|
import { GenerateApiSchema, ServiceGeneratorParams } from '../../models'; |
|
|
import { GenerateProxySchema, ServiceGeneratorParams } from '../../models'; |
|
|
import { |
|
|
import { |
|
|
applyWithOverwrite, |
|
|
applyWithOverwrite, |
|
|
buildDefaultPath, |
|
|
buildDefaultPath, |
|
|
@ -31,7 +31,7 @@ import { |
|
|
} from '../../utils'; |
|
|
} from '../../utils'; |
|
|
import * as cases from '../../utils/text'; |
|
|
import * as cases from '../../utils/text'; |
|
|
|
|
|
|
|
|
export default function(schema: GenerateApiSchema) { |
|
|
export default function(schema: GenerateProxySchema) { |
|
|
const params = removeDefaultPlaceholders(schema); |
|
|
const params = removeDefaultPlaceholders(schema); |
|
|
const moduleName = strings.camelize(params.module || 'app'); |
|
|
const moduleName = strings.camelize(params.module || 'app'); |
|
|
|
|
|
|
|
|
|