DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

472b8caf9fc39d2113b3675a95c3eabd7d91b7ce — skye 1 year, 5 months ago 27fe6b4
fix(client): api port, fix post request macros
2 files changed, 3 insertions(+), 3 deletions(-)

M client/src/macros/request.rs
M client/src/main.rs
M client/src/macros/request.rs => client/src/macros/request.rs +2 -2
@@ 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()

M client/src/main.rs => client/src/main.rs +1 -1
@@ 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(),
    });