Open feilz opened 8 years ago
Create a function, that takes as an argument a list, which is the data, and an identifier, turns it into JSON, and uses the correct URL to post it to the server.
The idea is that all data we send to the server is done through this function.
and returns the servers response. The appropriate movement inside the application is handled outside this function
Create a function, that takes as an argument a list, which is the data, and an identifier, turns it into JSON, and uses the correct URL to post it to the server.