@catch_errors for api routes.
Try to fix shadowing bug?