added getCategories method to server controller