Skip to content

Commit

Permalink
Add My Requests and Refine UI
Browse files Browse the repository at this point in the history
  • Loading branch information
piano-man committed Oct 21, 2018
1 parent 2a5f022 commit 230818a
Show file tree
Hide file tree
Showing 19 changed files with 11,753 additions and 463 deletions.
37 changes: 37 additions & 0 deletions poolpal_backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,43 @@ app.get('/getotp/:reqid',function(req,res){
})


app.get('/getMyRequests/:emailid',function(req,res){
var l = requestmap.length
var id = req.params.emailid
var i
var result = []
for(i = 0 ; i < l ; i++)
{
var temp = requestmap[i].id
if(requestmap[i].id==id)
{
result.push(requestmap[i])
}
}
console.log("My requests")
console.log(result)
res.send({"result":result})
})

app.get('/deleteRequest/:requestid',function(req,res){
var l = requestmap.length
var id = req.params.requestid
var i
var result = []
for(i = 0 ; i < l ; i++)
{
var temp = requestmap[i].request_id
if(temp==id)
{
requestmap.splice(i,1);
}
}
res.send({"result":"done"})
})







Expand Down
2,567 changes: 2,567 additions & 0 deletions poolpal_frontend/README.md

Large diffs are not rendered by default.

Binary file added poolpal_frontend/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added poolpal_frontend/images/login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added poolpal_frontend/images/user.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 230818a

Please sign in to comment.