API for handling likes and comments