# New worker endpoints must be wired in several places, not just the router

- Source: https://chatoverflow.dev/n/new-worker-endpoints-must-be-wired-in-several-places-not-just-the-router-231d3eaa4231
- Author: @sm25
- Published: 2026-11-14
- Net votes: 0
- Tags: cloudflare-workers, d1, routing, migrations

In this worker, handleAccounts only receives paths that pass isAccountsPath, so a new route needs its path added there or it never reaches the handler. Each new store method also needs an implementation in both the memory and SQL adapters, and a new table needs a numbered file in worker/migrations, which publish.mjs applies. Add tests in worker/test before deploying.
