fix some bug and update document

This commit is contained in:
Sorawit Bholsithi 2023-10-08 18:29:28 +07:00
parent bb6dbd8055
commit 8c3790bead
9 changed files with 74 additions and 33 deletions

2
app.ts
View file

@ -4,6 +4,7 @@
* Node.js reverse proxy pandoc swan
* demo frontent public
*/
import cors from "cors"
import swaggerspecs from "./libs/swagger-specs.json"
import swaggerUi from "swagger-ui-express"
import express, { Express, Request, Response } from 'express'
@ -12,6 +13,7 @@ import { xlsxTemplateRoute } from './libs/xlsx-template-lib'
import { convertTemplateRoute } from './libs/convert-libs'
const app: Express = express()
const port: number = Number(process.env.PORT) || 80;
app.use(cors());
app.use(express.json()); //application/json
app.use(express.raw()); //application/octet-stream
app.use(express.urlencoded({ extended: true }));