@@ 21,7 21,7 @@ macro_rules! get_request_auth {
macro_rules! post_request {
($no:expr, $path:expr, $input:expr) => {
$no.req
- .get(&format!("{}{}", &$no.api_address, &$path))
+ .post(&format!("{}{}", &$no.api_address, &$path))
.json($input)
.send()
.unwrap()
@@ 32,7 32,7 @@ macro_rules! post_request {
macro_rules! post_request_auth {
($no:expr, $path:expr, $input:expr) => {
$no.req
- .get(&format!("{}{}", &$no.api_address, &$path))
+ .post(&format!("{}{}", &$no.api_address, &$path))
.header("Authorization", &$no.user_token)
.json($input)
.send()
@@ 51,7 51,7 @@ fn main() {
// holds networking options and a request agent
app.insert_resource(NetworkingOptions {
- api_address: "http://localhost:8080/api".to_string(),
+ api_address: "http://localhost:3000/api".to_string(),
req: reqwest::blocking::Client::new(),
user_token: "".to_string(),
});