mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-06 11:16:28 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bbdb4c2963 | |||
| 33f3b64d17 | |||
| e3673f738c | |||
| f7d7d0efce |
@@ -216,9 +216,21 @@ const checkReservation = async (req, res) => {
|
|||||||
result = {
|
result = {
|
||||||
code: '412',
|
code: '412',
|
||||||
message: 'partner is not match',
|
message: 'partner is not match',
|
||||||
data: {},
|
data: {
|
||||||
|
body: req.body,
|
||||||
|
partner_id_token: req.partner_id_token,
|
||||||
|
partner_user_id_token: req.partner_user_id_token,
|
||||||
|
headers: req.headers,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// log warn
|
||||||
|
winston.logger.warn(
|
||||||
|
`${uniqueCode} [ RESPONSE RESERVATION-CHECK ]: ${JSON.stringify(
|
||||||
|
result
|
||||||
|
)}`
|
||||||
|
);
|
||||||
|
|
||||||
return res.status(200).json(result);
|
return res.status(200).json(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 48 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 9.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 32 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 60 KiB |
@@ -51,6 +51,9 @@ var corsOptions = {
|
|||||||
// app.use(cors(corsOptions));
|
// app.use(cors(corsOptions));
|
||||||
app.use(cors(corsOptions));
|
app.use(cors(corsOptions));
|
||||||
|
|
||||||
|
// add static file
|
||||||
|
app.use(express.static('public'));
|
||||||
|
|
||||||
// parse requests of content-type - application/json
|
// parse requests of content-type - application/json
|
||||||
app.use(bodyParser.json());
|
app.use(bodyParser.json());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user