fix: Support arbitrary socket names in URL routing #28
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_router#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
hero_router only recognizes these webnames:
rpc,ui,admin,rest,api. Any other name in/{service}/{name}/*maps toweb_{name}.sock.This breaks hero_compute which has
explorer_rpc.sock:Fix
In the default
_match arm (routes.rs ~line 996), before constructingweb_{name}.sock, check if{name}.sockexists directly on disk:This way any
.sockfile a service creates is automatically routable by its filename, without needing to register it as a known type.Related