add
This commit is contained in:
parent
1bd830bda3
commit
31905fb5ac
1 changed files with 6 additions and 1 deletions
|
|
@ -28,7 +28,12 @@ app.post("/token", async (req, res) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get("/callback", (req, res) => {
|
app.get("/callback", (req, res) => {
|
||||||
res.sendFile(path.join(__dirname, "callback/callback.html"));
|
// Get Hash
|
||||||
|
const hash = req.query.hash;
|
||||||
|
console.log("Hash:", hash);
|
||||||
|
|
||||||
|
// return json
|
||||||
|
res.json({ hash });
|
||||||
});
|
});
|
||||||
|
|
||||||
const PORT = 3000;
|
const PORT = 3000;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue