Adjusted param naming
This commit is contained in:
parent
15508606a4
commit
bb09b731aa
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue