mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
enhancement(lint): Fix lint errors for src/modules/slackapp.ts
Co-authored-by: NeonGamerBot-QK <saahilattud@gmail.com> Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
parent
dd5ea0757c
commit
5955879c07
1 changed files with 5 additions and 4 deletions
|
|
@ -29,12 +29,13 @@ export const app = new App({
|
|||
method: ["POST"],
|
||||
async handler(req, res) {
|
||||
const headers = {
|
||||
'Access-Control-Allow-Origin': '*', /* @dev First, read about security */
|
||||
'Access-Control-Allow-Methods': 'OPTIONS, POST, GET',
|
||||
'Access-Control-Max-Age': 2592000, // 30 days
|
||||
"Access-Control-Allow-Origin":
|
||||
"*" /* @dev First, read about security */,
|
||||
"Access-Control-Allow-Methods": "OPTIONS, POST, GET",
|
||||
"Access-Control-Max-Age": 2592000, // 30 days
|
||||
/** add other headers as per requirement */
|
||||
};
|
||||
|
||||
|
||||
const authHeader = req.headers["authorization"];
|
||||
if (authHeader !== process.env.AUTH) {
|
||||
res.writeHead(401).end();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue