From 57c393d9398924a5cec6657f94410c5d281ae81a Mon Sep 17 00:00:00 2001 From: Aarish <118203269+ImprobableGenius@users.noreply.github.com> Date: Sun, 25 May 2025 17:11:34 -0500 Subject: [PATCH] Add a method to fetch by domain --- routes/sites.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/sites.js b/routes/sites.js index f0753da..a2cb1e5 100644 --- a/routes/sites.js +++ b/routes/sites.js @@ -42,7 +42,7 @@ router.get('/:id', async function(req, res, next) { * * Returns a specific site by its domain name in JSON format. */ -router.get('/:domain', async function(req, res, next) { +router.get('/domain/:domain', async function(req, res, next) { const domainName = req.params.domain; let site = null;