Skip to content

Commit

Permalink
final build
Browse files Browse the repository at this point in the history
  • Loading branch information
a8h1km committed Jul 22, 2024
1 parent 47d2470 commit fdb8c44
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 129 deletions.
76 changes: 0 additions & 76 deletions proxy/HP.py

This file was deleted.

23 changes: 11 additions & 12 deletions proxy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,20 @@ const port = 3001;

app.use(cors());
app.use(express.json());
let apii = '';

const loadApiKey = async () => {
try {
apii = await fs.readFile('api_key.txt', 'utf8');
} catch (error) {
console.error("Error reading API key file:", error);
}
};

loadApiKey();
const key = process.env.API_KEY;
// let apii = '';
// const loadApiKey = async () => {
// try {
// apii = await fs.readFile('api_key.txt', 'utf8');
// } catch (error) {
// console.error("Error reading API key file:", error);
// }
// };
// loadApiKey();

app.post('/scan-url', async (req, res) => {
const url = req.body.url;
const api = apii.trim();
const api = key.trim();
console.log(api);
console.log(url);

Expand Down
41 changes: 0 additions & 41 deletions web/code7.py

This file was deleted.

0 comments on commit fdb8c44

Please sign in to comment.