Skip to content
Snippets Groups Projects
Commit 5ac7c54d authored by V S Tharunika's avatar V S Tharunika
Browse files

changed 'get' to 'post'

parent 0ba3e275
Branches
No related tags found
No related merge requests found
...@@ -8,10 +8,10 @@ app.use(morgan('combined')) ...@@ -8,10 +8,10 @@ app.use(morgan('combined'))
app.use(bodyParser.json()) app.use(bodyParser.json())
app.use(cors()) app.use(cors())
app.get('/status',(req, res) =>{ app.post('/register',(req, res) =>{
res.send({ res.send({
message: 'hello world!' message: 'hello ${req.body.email} ! Your user was registered! Have fun!'
}) })
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment