Skip to content

Commit

Permalink
Traefik does not support the DELETE method on the API.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Peyroux committed Mar 22, 2023
1 parent 39a55e4 commit 479a603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 479a603

Please sign in to comment.