Changed path for posting new urls

This commit is contained in:
2021-08-14 08:55:40 +02:00
parent fc84dde534
commit a6397f01d1

View File

@@ -70,7 +70,7 @@ const newUrlSchema = {
};
//Create new url route
fastify.post('/new', { newUrlSchema }, async (req, res) => {
fastify.post('/api/new', { newUrlSchema }, async (req, res) => {
const target = req.body?.target;
let shortcode = req.body?.shortcode;