21 lines
577 B
TypeScript
21 lines
577 B
TypeScript
import { defineConfig } from "@alova/wormhole";
|
|
|
|
export default defineConfig({
|
|
generator: [
|
|
{
|
|
input: "http://localhost:8072/cms/v2/api-docs",
|
|
platform: "swagger",
|
|
output: "src/api/gen",
|
|
type: "typescript",
|
|
global: "Apis",
|
|
splitImplementation: true,
|
|
implementation: "inline",
|
|
handleApi: (api: any) => {
|
|
if (api.deprecated) return false;
|
|
api.name = api.summary || api.name;
|
|
return api;
|
|
},
|
|
},
|
|
],
|
|
});
|