diff options
| author | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-14 20:27:13 +0400 | 
|---|---|---|
| committer | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-14 20:27:13 +0400 | 
| commit | 64f83235c128772bc6296eaf6e6a261f35535f6f (patch) | |
| tree | 38a8a8973d3982f6434cdf50d61619b6016f47cf | |
| parent | 24832713ade0852e77f2de01cd824c34fc63fff3 (diff) | |
build for more platforms
| -rw-r--r-- | .github/workflows/build.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/docker-publish.yml | 7 | ||||
| -rw-r--r-- | exes/rest/src/handler.rs | 2 | 
3 files changed, 7 insertions, 4 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2747168..1d606ed 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -96,7 +96,7 @@ jobs:            mingw32-make.exe all        - uses: actions/upload-artifact@v3          with: -          name: macos +          name: windows            path: build/*    build_linux: diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index ea7f567..5e5ad4a 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -15,9 +15,12 @@ jobs:        -          name: Checkout          uses: actions/checkout@v3 -      - -        name: Set up Docker Buildx + +      - name: Set up QEMU +        uses: docker/setup-qemu-action@v2 +      - name: Set up Docker Buildx          uses: docker/setup-buildx-action@v2 +        - name: Log into registry ${{ env.REGISTRY }}          uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c diff --git a/exes/rest/src/handler.rs b/exes/rest/src/handler.rs index ab158fe..f053af7 100644 --- a/exes/rest/src/handler.rs +++ b/exes/rest/src/handler.rs @@ -58,7 +58,7 @@ pub async fn handle_request(          let request_path = request.uri().path();          let (api_path, trimmed_path) = normalize_path(request_path); -        let mut uri_string = format!("http://127.0.0.1:9999{api_path}{trimmed_path}"); +        let mut uri_string = format!("https://discord.com{api_path}{trimmed_path}");          if let Some(query) = request.uri().query() {              uri_string.push('?');              uri_string.push_str(query);  | 
