implement controllers for GET method on node server side and trim seconds from datetime