-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauth.js
More file actions
26 lines (23 loc) · 686 Bytes
/
auth.js
File metadata and controls
26 lines (23 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const express = require('express');
const app = express();
app.get("/health-checkup-auth",(req,res)=>{
const kidneyid = req.query.kidneyid;
const username = req.headers.username;
const password = req.headers.password;
if(username != "tony" || password != "passtony"){
res.status(400).json({
msg:"User dosen't exist",
})
return
}
if(kidneyid != 1 && kidneyid != 2){
res.status(400).json({
msg:"Invalid iput.How the fuck you have more than 2 kidneys.are you alien motherfucker",
})``
return
}
res.json({
msg:"Your heart is fuck'n Healthy nigga",
})
});
app.listen(3001)