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
|
//Create new urls
|
||||||
fastify.post('/new', async (req, res) => {
|
fastify.post('/new', async (req, res) => {
|
||||||
const target = req.body?.target;
|
const target = req.body?.target;
|
||||||
let shortcode = req.body?.code;
|
let shortcode = req.body?.shortcode;
|
||||||
if (!req.body?.target) {
|
if (!req.body?.target) {
|
||||||
res.statusCode = 400;
|
res.statusCode = 400;
|
||||||
return "Missing target";
|
return "Missing target";
|
||||||
|
|
Loading…
Reference in New Issue