Add a method to fetch by domain

This commit is contained in:
Aarish
2025-05-25 17:11:34 -05:00
parent f28328dcc4
commit 57c393d939

View File

@@ -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;