This commit is contained in:
2022-04-20 18:25:59 -03:00
parent 9a64f7155c
commit 4636558d3b
5 changed files with 27 additions and 2 deletions

22
.vscode/settings.json vendored Normal file
View 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

View File

@@ -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')

View File

@@ -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}
}
}