import RouteHandler from '@pawjs/pawjs/src/router/handler' ; import GuestRoutes from './pages/guest' ; import AuthRoutes from './pages/auth' ; import SplashScreen from './pages/splash' ; export default class Routes { apply ( router ) { const routes = [ ... GuestRoutes , ... AuthRoutes , ... SplashScreen , ] ; router . hooks . initRoutes . tapPromise ( 'AppRoutes' , async ( ) => { router . addRoutes ( routes ) ; } ) ; } }