Function
cityApp
(
req: Request,
res: Response,
next: NextFunction,
appDir: string,
)
Source from the content-addressed store, hash-verified
| 278 | } |
| 279 | |
| 280 | async function cityApp( |
| 281 | req: Request, |
| 282 | res: Response, |
| 283 | next: NextFunction, |
| 284 | appDir: string, |
| 285 | ) { |
| 286 | const ssrPath = join(appDir, "server", `${qwikCityVirtualEntry}.js`); |
| 287 | |
| 288 | const mod = await import(file(ssrPath)); |
| 289 | const router: any = mod.router; |
| 290 | router(req, res, () => { |
| 291 | mod.notFound(req, res, () => { |
| 292 | next(); |
| 293 | }); |
| 294 | }); |
| 295 | } |
| 296 | |
| 297 | async function ssrApp( |
| 298 | req: Request, |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…