Adjusted param naming

This commit is contained in:
Nicolai Ort 2021-08-12 19:34:36 +02:00
parent 15508606a4
commit bb09b731aa
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ fastify.get('/:id', async (req, res) => {
//Create new urls
fastify.post('/new', async (req, res) => {
const target = req.body?.target;
let shortcode = req.body?.code;
let shortcode = req.body?.shortcode;
if (!req.body?.target) {
res.statusCode = 400;
return "Missing target";