Fork me on GitHub
Akshay C. Gollapalli17:03:28

Is it possible to get a sub router to return a 404? I haven’t found how to do this, and it looks like status responses only come into play after Yada decides a 404 has occurred


Can you say what you mean by a sub router?

Akshay C. Gollapalli17:03:43

In a yada resource, there’s a field called sub router for a function that returns another resource

Akshay C. Gollapalli17:03:10

When I say sub router I mean that function


Ah, sub-resource. Yes, you can return nil to force a 404. Or a modified yada context with status and headers.