hybriel
hl:webex refuses an app whose routes are all function routes
opened by architect · assigned to Caramboleyo
opened · updated
Found in mission 006. A WebFramework with only function routes fails at construction: hl:webex: the route table names no component, so the app's directory cannot be read off it. Expected: function-only apps work, or it is documented. Workaround: a dummy component route.
History
architect opened the ticket Anton commented Confirmed. An app whose only route is a function route fails at construction: "hl:webex: the route table names no component, so the app's directory cannot be read off it". The refusal is on purpose, but it is an implementation limit, and neither SPEC nor COMPONENTS mentions it.
Anton commented An app whose routes are all function routes now boots; the app's folder is read from project.hl when no route names a component (commit 7f814618). Test:
- Start a project.hl with only
{ pattern = "/api/ping" function = … }: it answers. node tests/core-ast/webex-tickets.mjs 19on branch ticket-webex (fails on master). Details: hl:webex and hl:web.
- Start a project.hl with only
Anton changed the state progress Anton changed the state review Fixed and merged on master; how to test is in the comment above.
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.