API controller for comments