yada

Akshay C. Gollapalli 2020-03-18T17:41:28.046900Z

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

malcolmsparks 2020-03-18T17:42:13.047900Z

Can you say what you mean by a sub router?

Akshay C. Gollapalli 2020-03-18T17:49:43.048700Z

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

Akshay C. Gollapalli 2020-03-18T17:50:10.049100Z

When I say sub router I mean that function

malcolmsparks 2020-03-18T17:52:02.051300Z

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

Akshay C. Gollapalli 2020-03-18T17:55:01.051500Z

Thanks