added get POST request to url.js, renamed it to api.js