Add a method to fetch by domain
This commit is contained in:
@@ -42,7 +42,7 @@ router.get('/:id', async function(req, res, next) {
|
|||||||
*
|
*
|
||||||
* Returns a specific site by its domain name in JSON format.
|
* 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;
|
const domainName = req.params.domain;
|
||||||
let site = null;
|
let site = null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user