making room for context to add to the props
This commit is contained in:
parent
5aede0d096
commit
ce67365a49
7 changed files with 44 additions and 26 deletions
|
|
@ -467,7 +467,7 @@ pub fn Create(
|
|||
if (r.path) |unsan_p| {
|
||||
const p = sanitizePath(unsan_p);
|
||||
for (_static.endpoints.items) |interface| {
|
||||
if (std.mem.startsWith(u8, p, interface.path) and std.mem.eql(u8, p, interface.path)) {
|
||||
if (std.mem.eql(u8, p, interface.path)) {
|
||||
return interface.call(interface, r) catch |err| {
|
||||
// if error is not dealt with in the interface, e.g.
|
||||
// if error strategy is .raise:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue