Skip to content
Snippets Groups Projects
Commit 320aa7af authored by Matt Kirby's avatar Matt Kirby
Browse files

Fixed http code

parent 57d4039e
Branches 24-create-endpoint-for-user-registration
No related tags found
1 merge request!9Create endpoint for user-registration
......@@ -140,7 +140,7 @@ export async function getUser(req,res){
try {
if(!username) return res.status(501).send({error: "Invalid Username"});
if(!username) return res.status(401).send({error: "Invalid Username"});
UserModel.findOne({username}, function(err, user){
if(err) return res.status(500).send({err});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment