fix some bug and update document
This commit is contained in:
parent
bb6dbd8055
commit
8c3790bead
9 changed files with 74 additions and 33 deletions
2
app.ts
2
app.ts
|
|
@ -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 }));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue