Frontend now sends data to endpoint