Add a method to fetch by domain
This commit is contained in:
1 parent
f28328dcc4
commit
57c393d939
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user