Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing params in /compile show send a 404 status code #1

Open
abranhe opened this issue May 14, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@abranhe
Copy link
Member

commented May 14, 2019

On /compile route it should send a 404 status code, current 401

router.post('/compile', async (req, res, next) => {
if (!req.body.script && !req.body.language) {
res.json({ msg: 'script & language are required' });
res.send(401);
return;
}

@abranhe abranhe self-assigned this May 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.