ハッシュタグタイムラインを実装
This commit is contained in:
@ -14,6 +14,7 @@ import reversiGameStream from './stream/games/reversi-game';
|
||||
import reversiStream from './stream/games/reversi';
|
||||
import serverStatsStream from './stream/server-stats';
|
||||
import notesStatsStream from './stream/notes-stats';
|
||||
import hashtagStream from './stream/hashtag';
|
||||
import { ParsedUrlQuery } from 'querystring';
|
||||
import authenticate from './authenticate';
|
||||
|
||||
@ -57,6 +58,11 @@ module.exports = (server: http.Server) => {
|
||||
return;
|
||||
}
|
||||
|
||||
if (request.resourceURL.pathname === '/hashtag') {
|
||||
hashtagStream(request, connection, ev, user);
|
||||
return;
|
||||
}
|
||||
|
||||
if (user == null) {
|
||||
connection.send('authentication-failed');
|
||||
connection.close();
|
||||
|
Reference in New Issue
Block a user