API endpoint for directory should be directory

Not `/category/`