Add api endpoint for like index