Fixed routes to api; added authors and categories