Add new API endpoints

Read the poll plugin code:

It has a controller and a route.