Changed path for posting new urls
This commit is contained in:
parent
fc84dde534
commit
a6397f01d1
|
@ -70,7 +70,7 @@ const newUrlSchema = {
|
||||||
};
|
};
|
||||||
|
|
||||||
//Create new url route
|
//Create new url route
|
||||||
fastify.post('/new', { newUrlSchema }, async (req, res) => {
|
fastify.post('/api/new', { newUrlSchema }, async (req, res) => {
|
||||||
const target = req.body?.target;
|
const target = req.body?.target;
|
||||||
let shortcode = req.body?.shortcode;
|
let shortcode = req.body?.shortcode;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue