ローカルタイムラインとグローバルタイムラインを実装
This commit is contained in:
parent
06535a37b5
commit
a0e640b118
19 changed files with 599 additions and 183 deletions
|
|
@ -4,6 +4,8 @@ import * as redis from 'redis';
|
|||
import config from '../../config';
|
||||
|
||||
import homeStream from './stream/home';
|
||||
import localTimelineStream from './stream/local-timeline';
|
||||
import globalTimelineStream from './stream/global-timeline';
|
||||
import driveStream from './stream/drive';
|
||||
import messagingStream from './stream/messaging';
|
||||
import messagingIndexStream from './stream/messaging-index';
|
||||
|
|
@ -64,8 +66,10 @@ module.exports = (server: http.Server) => {
|
|||
return;
|
||||
}
|
||||
|
||||
const channel =
|
||||
const channel: any =
|
||||
request.resourceURL.pathname === '/' ? homeStream :
|
||||
request.resourceURL.pathname === '/local-timeline' ? localTimelineStream :
|
||||
request.resourceURL.pathname === '/global-timeline' ? globalTimelineStream :
|
||||
request.resourceURL.pathname === '/drive' ? driveStream :
|
||||
request.resourceURL.pathname === '/messaging' ? messagingStream :
|
||||
request.resourceURL.pathname === '/messaging-index' ? messagingIndexStream :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue