init local code
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user