fix: routing

This patch fixes routing issues by calling validation decorators before
the expose() decorators. This is necessary becasue the expose()
decorator inspects the definition of the next function in order to map
params to the endpoint's function.