Skip to content

Commit

Permalink
trying deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuyisenge2 committed Mar 28, 2024
1 parent 7056fdd commit 534b805
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,12 @@ import swaggerUi from "swagger-ui-express";
import swaggerOutput from "./documentation/swagger_output.json"
import swaggerUI from "swagger-ui-express";
import docs from "./document";
import cors from "cors";
import express from "express";

const app = express()
const corsOpts = {
origin: '*',

methods: [
'GET',
'POST',
'DELETE',
'PATCH',
'PUT'
],
}
app.use(cors(corsOpts));


app.use(express.json()) // new



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


Expand Down

0 comments on commit 534b805

Please sign in to comment.