Add an endpoint for creating an entry