Fixed Data sending error to the server

Just adding a return to the get method is enough, flask converts it into
200. Without it, it results in an error.