I tried:
In main dispatcher:
<Routes>
<Map Prefix="/v1/news" Forward="API.Dispatch.news"/>
</Routes>
And in the sub-dispatcher:
<Routes>
<Route Url="/:id" Method="GET" Call="NewsGetItem"/>
</Routes>
And so with classmethod:
ClassMethod NewsGetItem(id As %Integer) As %Status
{
w id
Quit $$$OK
}
But still 404
- Log in to post comments
