From 479a603d002197d46df173ba11f139bd6e58cabb Mon Sep 17 00:00:00 2001 From: Alexandre Peyroux Date: Wed, 22 Mar 2023 22:00:44 +0100 Subject: [PATCH] Traefik does not support the DELETE method on the API. --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 5eef613..6d7aa90 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -52,7 +52,7 @@ services: labels: - "traefik.enable=true" # tell Traefik this is something we would like to expose - "traefik.http.routers.backend.entrypoints=web" # what entrypoint should be used for the backend service. - - "traefik.http.routers.backend.rule=Host(`localhost`) && PathPrefix(`/api`) && Method(`POST`)" # + - "traefik.http.routers.backend.rule=Host(`localhost`) && PathPrefix(`/api`) && (Method(`POST`) || Method(`DELETE`))" # # Frontend for serving encrypted notes over HTML (SvelteKit) frontend: