Skip to content

Commit 6e184e9

Browse files
authored
Update index.js
1 parent 908db9b commit 6e184e9

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

index.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,6 @@ app.get('/weather/:city', async (req, res) => { // Because URL PARAMS ARE COOLER
6767
})
6868
})
6969

70-
71-
app.get('/generate/:data', async (req, res) => { // Because URL PARAMS ARE COOLER
72-
// this can be stored in the Database now
73-
console.log(atob(req.params.data));
74-
res.json({
75-
cookie: req.params.data
76-
})
77-
})
78-
7970
app.get('/add-sha/:sha', (req, res) => {
8071
const encoded = Base64.encode(1)
8172
Axios.put("https://api.github.com/repos/ujjwal-kr-data/ip-data/contents/" + req.params.sha, {
@@ -108,4 +99,4 @@ app.get('/add-sha/:sha', (req, res) => {
10899
const port = process.env.PORT || 4000;
109100
app.listen(port, () => {
110101
console.log(`Waiting on port for someone :) ${port}`);
111-
});
102+
});

0 commit comments

Comments
 (0)