Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
build: fix api build error
Browse files Browse the repository at this point in the history
  • Loading branch information
soulsam480 committed Aug 15, 2021
1 parent 5fd579f commit beca718
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { createConnection } from 'src/db';
import { parseEnv } from 'src/utils/helpers';
import { authRouter } from 'src/controllers/auth';
import { setupOauth } from './oauth';
import { serve, setup } from 'swagger-ui-express';
import specs from '../swagger-spec.json';
// import { serve, setup } from 'swagger-ui-express';
// import specs from '../swagger-spec.json';
import { userRouter } from './controllers/user';
import { createExpressServer } from 'dango-core';
import { postController } from './controllers/post';
Expand All @@ -38,7 +38,7 @@ async function main() {
app.use('/auth', authRouter);
app.use('/users', userRouter);

app.use('/api-docs', serve, setup(specs));
// app.use('/api-docs', serve, setup(specs));

createExpressServer(app, {
controllers: [postController],
Expand Down
1 change: 0 additions & 1 deletion api/swagger-spec.json

This file was deleted.

0 comments on commit beca718

Please sign in to comment.