Skip to content

Commit

Permalink
feat: Updated backend/src/controllers/regionContro
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Dec 22, 2023
1 parent 232db36 commit 027ecb2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions backend/src/controllers/regionController.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,13 @@ async function getDivisions(regionId, hierarchyId) {
return resultDivisions;
}

/**
* Retrieves all available hierarchies.
*
* @param {Object} req - The request object.
* @param {Object} res - The response object.
* @returns {Promise<void>} - A promise that resolves when the hierarchies are retrieved.
*/
exports.getHierarchies = async (req, res) => {
try {
const hierarchies = await HierarchyNames.findAll();
Expand Down

0 comments on commit 027ecb2

Please sign in to comment.