Changes to SSR
This commit is contained in:
1 parent
06ab3b06bd
commit
8ccee4a70f
7 files changed
+21
-10
No files matched your search
+2
-5
@@ -41,11 +41,8 @@ app.use(
|
||||
* Handle all other requests by rendering the Angular application.
|
||||
*/
|
||||
app.use('/**', (req, res, next) => {
|
||||
angularApp
|
||||
.handle(req)
|
||||
.then((response) =>
|
||||
response ? writeResponseToNodeResponse(response, res) : next(),
|
||||
)
|
||||
angularApp.handle(req)
|
||||
.then(response => response ? res.send(response) : next())
|
||||
.catch(next);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user