Skip to content

Commit b722066

Browse files
etrclaude
andcommitted
TASK-024: housekeeping — mark Done
Flip TASK-024 status to Done in both the per-task file and the tasks index. Action items annotated with the decisions made: - register_resource is kept as a [[deprecated]] alias for register_path; the bool-family overload is removed. - unregister_resource is split into unregister_path / unregister_prefix, with unregister_resource kept as the kind-agnostic convenience. No code changes; ready for review. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d23d1a5 commit b722066

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

specs/tasks/M4-handlers/TASK-024.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
Make prefix-vs-exact matching a named API choice rather than a positional `bool` flag.
99

1010
**Action Items:**
11-
- [ ] Add `register_path(const std::string& path, std::unique_ptr<http_resource>);` and `(..., std::shared_ptr<http_resource>);` — exact-match registration.
12-
- [ ] Add `register_prefix(const std::string& path, std::unique_ptr<http_resource>);` and `(..., std::shared_ptr<http_resource>);` — prefix-match registration.
13-
- [ ] Document the distinction: `register_path("/users/{id}")` matches only the parameterized exact form; `register_prefix("/static/")` matches `/static/anything/here`.
14-
- [ ] `register_resource` (TASK-023) becomes either an alias for `register_path` or is kept as the umbrella entry point that internally calls one of the two — pick one and document.
15-
- [ ] Remove the `bool family` parameter from any surviving overload.
16-
- [ ] Update `unregister_resource(path)` to handle both registration kinds (or split into `unregister_path`/`unregister_prefix`).
11+
- [x] Add `register_path(const std::string& path, std::unique_ptr<http_resource>);` and `(..., std::shared_ptr<http_resource>);` — exact-match registration.
12+
- [x] Add `register_prefix(const std::string& path, std::unique_ptr<http_resource>);` and `(..., std::shared_ptr<http_resource>);` — prefix-match registration.
13+
- [x] Document the distinction: `register_path("/users/{id}")` matches only the parameterized exact form; `register_prefix("/static/")` matches `/static/anything/here`.
14+
- [x] `register_resource` (TASK-023) becomes either an alias for `register_path` or is kept as the umbrella entry point that internally calls one of the two — pick one and document. *(Decision: kept as a `[[deprecated]]` alias for `register_path`, documented in webserver.hpp; the 3-arg `bool family` overload is removed.)*
15+
- [x] Remove the `bool family` parameter from any surviving overload.
16+
- [x] Update `unregister_resource(path)` to handle both registration kinds (or split into `unregister_path`/`unregister_prefix`). *(Did both: split into `unregister_path` / `unregister_prefix`, kept `unregister_resource` as the kind-agnostic convenience.)*
1717

1818
**Dependencies:**
1919
- Blocked by: TASK-023
@@ -28,4 +28,4 @@ Make prefix-vs-exact matching a named API choice rather than a positional `bool`
2828
**Related Requirements:** PRD-HDL-REQ-004
2929
**Related Decisions:** §4.7
3030

31-
**Status:** Not Started
31+
**Status:** Done

specs/tasks/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Nominally: **13 sequential tasks**, each S–XL. Most other tasks parallelize of
106106
| TASK-021 | `http_resource` allow-mask via `method_set` | M4 | Done | TASK-005 |
107107
| TASK-022 | Snake_case `render_*` overrides on `http_resource` | M4 | Done | TASK-021 |
108108
| TASK-023 | Smart-pointer `register_resource` overloads | M4 | Done | TASK-014 |
109-
| TASK-024 | `register_path` and `register_prefix` (replace `bool family`) | M4 | Not Started | TASK-023 |
109+
| TASK-024 | `register_path` and `register_prefix` (replace `bool family`) | M4 | Done | TASK-023 |
110110
| TASK-025 | Lambda handler entry points `on_*` | M4 | Not Started | TASK-005, TASK-009, TASK-014 |
111111
| TASK-026 | Generic `webserver::route(method, path, handler)` | M4 | Not Started | TASK-005, TASK-025 |
112112
| TASK-027 | 3-tier route table with LRU cache | M5 | Not Started | TASK-005, TASK-014, TASK-021, TASK-024, TASK-025, TASK-026 |

0 commit comments

Comments
 (0)