Adds categories endpoints.