Traefik does not support the DELETE method on the API.

This commit is contained in:
Alexandre Peyroux 2023-03-22 22:00:44 +01:00
parent 39a55e4a01
commit 479a603d00
No known key found for this signature in database
GPG Key ID: A4BD77DD1421E5CF

View File

@ -52,7 +52,7 @@ services:
labels: labels:
- "traefik.enable=true" # tell Traefik this is something we would like to expose - "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.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 for serving encrypted notes over HTML (SvelteKit)
frontend: frontend: