fix(routes): pass the kernel object to some routes

Routes that using kernel to access resources:
- a few API routes
- a few general routes