Adds endpoint for getting time