mirror of
https://github.com/FranP-code/Open-Telegram-to-Notion-Backend.git
synced 2025-10-12 23:52:54 +00:00
fixes
This commit is contained in:
22
.vscode/settings.json
vendored
Normal file
22
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"workbench.colorCustomizations": {
|
||||
"activityBar.activeBackground": "#2f7c47",
|
||||
"activityBar.activeBorder": "#422c74",
|
||||
"activityBar.background": "#2f7c47",
|
||||
"activityBar.foreground": "#e7e7e7",
|
||||
"activityBar.inactiveForeground": "#e7e7e799",
|
||||
"activityBarBadge.background": "#422c74",
|
||||
"activityBarBadge.foreground": "#e7e7e7",
|
||||
"sash.hoverBorder": "#2f7c47",
|
||||
"statusBar.background": "#215732",
|
||||
"statusBar.foreground": "#e7e7e7",
|
||||
"statusBarItem.hoverBackground": "#2f7c47",
|
||||
"statusBarItem.remoteBackground": "#215732",
|
||||
"statusBarItem.remoteForeground": "#e7e7e7",
|
||||
"titleBar.activeBackground": "#215732",
|
||||
"titleBar.activeForeground": "#e7e7e7",
|
||||
"titleBar.inactiveBackground": "#21573299",
|
||||
"titleBar.inactiveForeground": "#e7e7e799"
|
||||
},
|
||||
"peacock.color": "#215732"
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 264 KiB |
@@ -3,6 +3,10 @@ const app = Express()
|
||||
const port = (process.env.PORT || 3030)
|
||||
require('dotenv').config()
|
||||
|
||||
//Enable CORS
|
||||
const cors = require('cors');
|
||||
app.use(cors())
|
||||
|
||||
//Configure Handlebars
|
||||
const hbs = require('hbs')
|
||||
hbs.registerPartials(__dirname + '/../views/partials')
|
||||
|
||||
@@ -8,7 +8,7 @@ router.get('/', async (req, res) => {
|
||||
async function requestAccessToken() {
|
||||
try {
|
||||
const reqData = {
|
||||
code: req.query.code,
|
||||
code: req.headers.code,
|
||||
grant_type: "authorization_code",
|
||||
redirect_uri: "https://telegram-to-notion.herokuapp.com/auth"
|
||||
}
|
||||
@@ -45,7 +45,6 @@ router.get('/', async (req, res) => {
|
||||
}
|
||||
catch (error) {
|
||||
console.log(error)
|
||||
|
||||
return {status: 400}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user