Skip to content

Commit

Permalink
fix: swagger build error.
Browse files Browse the repository at this point in the history
  • Loading branch information
chizuki committed Feb 25, 2023
1 parent fb2aa68 commit 68cf361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/integrations/swagger/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export interface SwaggerUIBuildOptions {
function createMockDocsCode(options: SwaggerOptions = {}) {
return `
import { defineRouter } from "@fourze/core";
import { createSwaggerMiddleware } from "@fourze/swagger-middleware";
import { createSwaggerMiddleware } from "@fourze/middlewares";
export default defineRouter((router,app) => {
router.setMeta("swagger",false);
router.get("/api-docs", createSwaggerMiddleware(app,${JSON.stringify(options)}));
Expand All @@ -57,7 +57,7 @@ function createMockDocsCode(options: SwaggerOptions = {}) {
}

export function getModuleAlias() {
return ["@fourze/core", "@fourze/mock", "@fourze/swagger", "@fourze/swagger-middleware"].map(r => {
return ["@fourze/core", "@fourze/mock", "@fourze/swagger", "@fourze/middlewares"].map(r => {
return {
find: r,
replacement: require.resolve(r)
Expand Down

0 comments on commit 68cf361

Please sign in to comment.