Define routes inline so we get proper stacktrace