summaryrefslogtreecommitdiff
path: root/utils.js
diff options
context:
space:
mode:
authorCarson Fleming <cflems@cflems.net>2023-10-20 00:11:37 -0400
committerCarson Fleming <cflems@cflems.net>2023-10-20 00:11:37 -0400
commitab87bf915cbef62d5032b47540e593442c780193 (patch)
tree9634f6113c6b7fbaeaf4166e760bb08e0072a19e /utils.js
parentc6d0cd3fca3cc9cacdb4c5a88797d00ae5560841 (diff)
downloadfle.ms-ab87bf915cbef62d5032b47540e593442c780193.tar.gz
Change config format
Diffstat (limited to 'utils.js')
-rw-r--r--utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.js b/utils.js
index bd03888..eefc84d 100644
--- a/utils.js
+++ b/utils.js
@@ -29,7 +29,7 @@ const helperFunctions = {
res.status(404).json({status: "ERROR", statusCode: 500, errorType: "INTERNAL", errorMessage: "Internal Server Error"});
},
sendSuccessfulSlugCreation : function (res, slug) {
- res.status(201).json({status: "SUCCESS", statusCode: 201, data: {shortUrl: config.BASE_URI+slug}});
+ res.status(201).json({status: "SUCCESS", statusCode: 201, data: {shortUrl: config.BASE+slug}});
},
isAlphaNumeric : function (str) {
return str.match(/^[a-zA-Z0-9]+$/) !== null;