Created new route /get_subcategory/:id which returns subcategories.
Refactored the route functions to a dedicated file inside Category module.