diff options
author | Chocobozzz <me@florianbigard.com> | 2019-08-09 11:32:40 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-08-09 11:32:40 +0200 |
commit | 557b13ae24019d9ab214bbea7eaa0f892c8f4b05 (patch) | |
tree | aa32396531acf93e3dfdb29880177813039ed77f /server.ts | |
parent | c5407d7046168abb4098df1408e7aa84519cb61a (diff) | |
download | PeerTube-557b13ae24019d9ab214bbea7eaa0f892c8f4b05.tar.gz PeerTube-557b13ae24019d9ab214bbea7eaa0f892c8f4b05.tar.zst PeerTube-557b13ae24019d9ab214bbea7eaa0f892c8f4b05.zip |
Lazy load avatars
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -97,6 +97,7 @@ import { | |||
97 | clientsRouter, | 97 | clientsRouter, |
98 | feedsRouter, | 98 | feedsRouter, |
99 | staticRouter, | 99 | staticRouter, |
100 | lazyStaticRouter, | ||
100 | servicesRouter, | 101 | servicesRouter, |
101 | pluginsRouter, | 102 | pluginsRouter, |
102 | webfingerRouter, | 103 | webfingerRouter, |
@@ -192,6 +193,7 @@ app.use('/', botsRouter) | |||
192 | 193 | ||
193 | // Static files | 194 | // Static files |
194 | app.use('/', staticRouter) | 195 | app.use('/', staticRouter) |
196 | app.use('/', lazyStaticRouter) | ||
195 | 197 | ||
196 | // Client files, last valid routes! | 198 | // Client files, last valid routes! |
197 | if (cli.client) app.use('/', clientsRouter) | 199 | if (cli.client) app.use('/', clientsRouter) |