created /get_all_categories/ method