After creating a record, send back the document. Removed public folder from backend