forked from DIYgod/RSSHub
-
Notifications
You must be signed in to change notification settings - Fork 2
/
router.js
905 lines (828 loc) · 26.4 KB
/
router.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
const Router = require('koa-router');
const router = new Router();
const art = require('art-template');
const path = require('path');
const baseUrl = 'http://rss.mindynode.com';
let routerlist = [
{
url: '/netease/guoji',
name: '网易新闻',
route: 'http://rss.mindynode.com/netease/:category',
param: 'category: [guoji(国际)| guonei(国内)| shehui(社会)| yaowen(要闻)| tech(科技)| sports(体育)| ent(娱乐)| lady(女性)| auto(汽车)| house(住房)| jiankang(健康)]',
},
{
url: '/cankao/roll',
name: '参考消息',
route: 'http://rss.mindynode.com/cankao/roll',
param: '',
},
// {
// url: '/un/veto',
// name: '联合国决议否决',
// route: '/un/veto',
// param: '',
// },
// 网信部
// {
// url: '/wangxinban/fabu',
// name: '网信办 办公室发布',
// route: '/wangxinban/fabu',
// param: '',
// },
// {
// url: '/wangxinban/bangongshi',
// name: '网信办 办公室工作',
// route: '/wangxinban/bangongshi',
// param: '',
// },
// {
// url: '/wangxinban/anquan',
// name: '网信办 网络安全动态',
// route: '/wangxinban/anquan',
// param: '',
// },
// {
// url: '/wangxinban/anquan-guanli',
// name: '网信办 网络安全管理',
// route: '/wangxinban/anquan-guanli',
// param: '',
// },
// US
{
url: '/us/hud/news',
name: 'HUD Press Release',
route: '/us/hud/news',
param: '',
},
{
url: '/us/treasury/press',
name: 'Department of Treasury Press Release',
route: '/us/treasury/press',
param: '',
},
{
url: '/us/transportation/press',
name: 'Department of Transportation Press Release',
route: '/us/transportation/press',
param: '',
},
// 国务院
{
url: '/guowuyuan/xinwen',
name: '国务院-新闻-要闻',
route: '/guowuyuan/xinwen',
param: '',
},
{
url: '/guowuyuan/dongtai',
name: '国务院-动态',
route: '/guowuyuan/dongtai',
param: '',
},
{
url: '/guowuyuan/zhengce-zuixin',
name: '国务院-政策-最新',
route: '/guowuyuan/zhengce-zuixin',
param: '',
},
{
url: '/guowuyuan/shuju',
name: '国务院-数据-要闻',
route: '/guowuyuan/shuju',
param: '',
},
{
url: '/guowuyuan/fazhiban',
name: '国务院-公开征求意见',
route: '/guowuyuan/fazhiban',
param: '',
},
{
url: '/szse/300104',
name: '深圳证券交易所上市公司公告',
route: '/szse/:secode',
param: 'secode: 股票代码',
},
{
url: '/shse/600687',
name: '上海证券交易所上市公司公告',
route: '/shse/:secode',
param: 'secode: 股票代码',
},
{
url: '/hdfy/anjian',
name: '海淀法院 案件快报',
route: '/hdfy/anjian',
param: '',
},
{
url: '/shgov/bulletin',
name: '上海市经济和信息化委员会 政务公开',
route: '/shgov/bulletin',
param: '',
},
{
url: '/gov/sichuan/jijian',
name: '四川省纪检委',
route: '/gov-sichuan/jijian',
param: '',
},
// 科技部
{
url: '/kejibu/gengxin',
name: '科技部 最近更新',
route: '/kejibu/gengxin',
param: '',
},
// 工信部
{
url: '/gongxinbu/dongtai',
name: '工信部 工作动态',
route: '/gongxinbu/dongtai',
param: '',
},
{
url: '/gongxinbu/duiwai',
name: '工信部 对外交流',
route: '/gongxinbu/duiwai',
param: '',
},
{
url: '/gongxinbu/gongzuo',
name: '工信部 重点工作',
route: '/gongxinbu/gongzuo',
param: '',
},
{
url: '/gongxinbu/lingdao',
name: '工信部 领导活动',
route: '/gongxinbu/lingdao',
param: '',
},
{
url: '/gongxinbu/wenjian',
name: '工信部 政策文件',
route: '/gongxinbu/wenjian',
param: '',
},
{
url: '/gongxinbu/tongji-zonghe',
name: '工信部 统计 综合',
route: '/gongxinbu/tongji-zonghe',
param: '',
},
{
url: '/gongxinbu/tongji-dianzi',
name: '工信部 统计 电子',
route: '/gongxinbu/tongji-dianzi',
param: '',
},
{
url: '/gongxinbu/tongji-ruanjian',
name: '工信部 统计 软件',
route: '/gongxinbu/tongji-ruanjian',
param: '',
},
{
url: '/gongxinbu/tongji-tongxin',
name: '工信部 统计 通信',
route: '/gongxinbu/tongji-tongxin',
param: '',
},
{
url: '/gongxinbu/tongji-xiaofeipin',
name: '工信部 统计 消费品',
route: '/gongxinbu/tongji-xiaofeipin',
param: '',
},
{
url: '/gongxinbu/tongji-yuancailiao',
name: '工信部 统计 原材料',
route: '/gongxinbu/tongji-yuancailiao',
param: '',
},
{
url: '/gongxinbu/tongji-zhuangbei',
name: '工信部 统计 装备',
route: '/gongxinbu/tongji-zhuangbei',
param: '',
},
// 纪检委
{
url: '/jijian/yaowen',
name: '纪检委 要闻',
route: '/jijian/yaowen',
param: '',
},
{
url: '/jijian/zhongguansc',
name: '纪检委 中管审查',
route: '/jijian/zhongguansc',
param: '',
},
{
url: '/jijian/zhongguancf',
name: '纪检委 中管处分',
route: '/jijian/zhongguancf',
param: '',
},
{
url: '/jijian/zhongyangsc',
name: '纪检委 中央审查',
route: '/jijian/zhongyangsc',
param: '',
},
{
url: '/jijian/zhongyangcf',
name: '纪检委 中央处分',
route: '/jijian/zhongyangcf',
param: '',
},
{
url: '/jijian/shenguansc',
name: '纪检委 省管审查',
route: '/jijian/shenguansc',
param: '',
},
{
url: '/jijian/shenguancf',
name: '纪检委 省管处分',
route: '/jijian/shenguancf',
param: '',
},
// 财政部
{
url: '/caizhengbu/zhengce',
name: '财政部 政策发布',
route: '/caizhengbu/zhengce',
param: '',
},
// 最高检
{
url: '/jianchayuan/fabu',
name: '最高人民检察院 权威发布',
route: '/jianchayuan/fabu',
param: '',
},
{
url: '/jianchayuan/xinwen',
name: '最高人民检察院 新闻',
route: '/jianchayuan/xinwen',
param: '',
},
// 发改委
{
url: '/fagaiwei/xinwen',
name: '发改委 新闻',
route: '/fagaiwei/xinwen',
param: '',
},
// 国防部
{
url: '/guofangbu/fabu',
name: '国防部 权威发布',
route: '/guofangbu/fabu',
param: '',
},
// 外交部
{
url: '/waijiaobu/lingdaoren',
name: '外交部 领导人活动',
route: '/waijiaobu/lingdaoren',
param: '',
},
{
url: '/waijiaobu/sjxw',
name: '外交部 司局新闻',
route: '/waijiaobu/sjxw',
param: '',
},
{
url: '/waijiaobu/zwbd',
name: '外交部 驻外报道',
route: '/waijiaobu/zwbd',
param: '',
},
// 最高法
{
url: '/zgfy/zuigao',
name: '最高人民法院 新闻',
route: '/zgfy/zuigao',
param: '',
},
{
url: '/zgfy/difang',
name: '最高人民法院 地方新闻',
route: '/zgfy/difang',
param: '',
},
{
url: '/zgfy/jieshi',
name: '最高人民法院 司法解释',
route: '/zgfy/jieshi',
param: '',
},
{
url: '/zgfy/zhongda',
name: '最高人民法院 重大案件',
route: '/zgfy/zhongda',
param: '',
},
// 教育部
{
url: '/jiaoyubu/jyyw',
name: '教育部 教育要闻',
route: '/jiaoyubu/jyyw',
param: '',
},
{
url: '/jiaoyubu/jytz',
name: '教育部 教育通知',
route: '/jiaoyubu/jytz',
param: '',
},
// 公安部
{
url: '/gonganbu/bulletin',
name: '公安部 通知',
route: '/gonganbu/bulletin',
param: '',
},
// 广电总局
{
url: '/guangdian/tongzhi',
name: '国家广播电视总局 通知公告',
route: '/guangdian/tongzhi',
param: '',
},
{
url: '/guangdian/movie-beian',
name: '国家广播电视总局 电影剧本备案',
route: '/guangdian/movie-beian',
param: '',
},
{
url: '/guangdian/movie-xuke',
name: '国家广播电视总局 电影放映许可',
route: '/guangdian/movie-xuke',
param: '',
},
// 税务总局
{
url: '/shuiwu/yaowen',
name: '国家税务总局 税务要闻',
route: '/shuiwu/yaowen',
param: '',
},
// 体育总局
{
url: '/tiyu/tongzhi',
name: '国家体育总局 通知公告',
route: '/tiyu/tongzhi',
param: '',
},
{
url: '/tiyu/difang',
name: '国家体育总局 地方动态',
route: '/tiyu/difang',
param: '',
},
// 市监局
{
url: '/shichang/zhaohui',
name: '国家市场监督管理总局 召回公告',
route: '/shichang/zhaohui',
param: '',
},
{
url: '/shichang/gonggao',
name: '国家市场监督管理总局 公告',
route: '/shichang/gonggao',
param: '',
},
{
url: '/shichang/tonggao',
name: '国家市场监督管理总局 通告',
route: '/shichang/tonggao',
param: '',
},
{
url: '/shichang/xinwen',
name: '国家市场监督管理总局 新闻发布',
route: '/shichang/xinwen',
param: '',
},
{
url: '/shichang/wenjian',
name: '国家市场监督管理总局 文件发布',
route: '/shichang/wenjian',
param: '',
},
// 宗教事务局
{
url: '/zongjiao/bu',
name: '国家宗教事务局 部工作动态',
route: '/zongjiao/bu',
param: '',
},
{
url: '/zongjiao/difang',
name: '国家宗教事务局 地方工作动态',
route: '/zongjiao/difang',
param: '',
},
{
url: '/zongjiao/zongjiao',
name: '国家宗教事务局 宗教界动态',
route: '/zongjiao/zongjiao',
param: '',
},
// 海关
{
url: '/haiguan/dongtai',
name: '海关总署 动态',
route: '/haiguan/dongtai',
param: '',
},
{
url: '/ip/gongzuo',
name: '国家知识产权局 - 知识产权工作',
route: '/ip/gongzuo',
param: '',
},
{
url: '/ip/tongzhi',
name: '国家知识产权局 - 工作通知',
route: '/ip/tongzhi',
param: '',
},
{
url: '/zhufang/yaowen',
name: '住房和城乡建设部 要闻',
route: '/zhufang/yaowen',
param: '',
},
{
url: '/zhufang/xinxi',
name: '住房和城乡建设部 信息公示',
route: '/zhufang/xinxi',
param: '',
},
{
url: '/zhufang/difang',
name: '住房和城乡建设部 地方动态',
route: '/zhufang/difang',
param: '',
},
{
url: '/renshe/shebao',
name: '人力资源和社保部 工作动态',
route: '/renshe/shebao',
param: '',
},
{
url: '/renshe/xinwen',
name: '人力资源和社保部 新闻',
route: '/renshe/xinwen',
param: '',
},
{
url: '/renshe/zhengce',
name: '人力资源和社保部 政策文件',
route: '/renshe/zhengce',
param: '',
},
{
url: '/waihui/yaowen',
name: '外汇管理局 要闻',
route: '/waihui/yaowen',
param: '',
},
{
url: '/cppcc/news',
name: '政协 新闻',
route: '/cppcc/news',
param: '',
},
{
url: '/cppcc/fabu',
name: '政协 权威发布',
route: '/cppcc/fabu',
param: '',
},
// 卫健委
{
url: '/weijianwei/news',
name: '卫健委 最新信息',
route: '/weijianwei/news',
param: '',
},
// 民政部
{
url: '/minzhengbu/news',
name: '民政部 政策',
route: '/minzhengbu/news',
param: '',
},
{
url: '/minzhengbu/tongji',
name: '民政部 统计',
route: '/minzhengbu/tongji',
param: '',
},
{
url: '/nongye/guoji',
name: '农业农村部 国际交流',
route: '/nongye/guoji',
param: '',
},
{
url: '/shangwu/richang',
name: '商务部 日常新闻发布',
route: '/shangwu/richang',
param: '',
},
{
url: '/shangwu/fayan',
name: '商务部 发言人谈话',
route: '/shangwu/fayan',
param: '',
},
{
url: '/shangwu/zhuanti',
name: '商务部 专题发布会',
route: '/shangwu/zhuanti',
param: '',
},
{
url: '/sifa/zhengfa',
name: '司法部 政法要闻',
route: '/sifa/zhengfa',
param: '',
},
{
url: '/sifa/chufa',
name: '司法部 行政处罚和行业处分通报',
route: '/sifa/chufa',
param: '',
},
// 疾病预防控制中心
// {
// url: '/cdc/news',
// name: '疾病预防控制中心 中心要闻',
// route: '/cdc/news',
// param: '',
// },
// {
// url: '/nmpa/news',
// name: '药监局 新闻',
// route: '/nmpa/news',
// param: '',
// },
];
// TODO: fix
// { "url": "/bjfy/wenshu", "name": "北京法院 裁判文书", "route": "/bjfy/wenshu", "param": "" },
// {"url": "/jrtt/sports", "name": "今日头条", "route": "/jrtt/:category", "param": "category: []"},
// { "url": "/court/wenshu", "name": "中国裁判文书网", "route": "/court/wenshu", "param": "" },
// /wangxinban/fabu
const homepage = (template) => {
return async (ctx) => {
ctx.set({
'Content-Type': 'text/html; charset=UTF-8',
});
// https://github.com/DIYgod/RSSHub/blob/master/router.js
const time = (+new Date() - startTime) / 1000;
const routes = Object.keys(ctx.debug.routes).sort((a, b) => ctx.debug.routes[b] - ctx.debug.routes[a]);
const hotRoutes = routes.slice(0, 100).map((e) => decodeURIComponent(e));
let hotRoutesValue = '';
hotRoutes.forEach((item) => {
hotRoutesValue += `${ctx.debug.routes[item]} ${item}<br>`;
});
const ips = Object.keys(ctx.debug.ips).sort((a, b) => ctx.debug.ips[b] - ctx.debug.ips[a]);
const hotIPs = ips.slice(0, 100);
let hotIPsValue = '';
hotIPs.forEach((item) => {
hotIPsValue += `${ctx.debug.ips[item]} ${item}<br>`;
});
ctx.set({
'Cache-Control': 'no-cache',
});
routerlist = routerlist.map((route) => {
route['status'] = ctx.debug.status[route['route']];
return route;
});
ctx.body = art(path.resolve(__dirname, `./views/${template}.art`), {
debug: {
routes_news: routerlist.slice(0, 2),
routes_gov: routerlist.slice(2),
hotRoutes: hotRoutes,
hotIPs: hotIPs,
status: [
{
name: '请求数',
value: ctx.debug.request,
},
{
name: '请求频率',
value: ((ctx.debug.request / time) * 60).toFixed(3) + ' 次/分钟',
},
{
name: '缓存命中率',
value: ctx.debug.request ? (ctx.debug.hitCache / ctx.debug.request).toFixed(3) : 0,
},
{
name: '内存占用',
value: process.memoryUsage().rss / 1000000 + ' MB',
},
{
name: '运行时间',
value: time + ' 秒',
},
],
},
});
};
};
const startTime = +new Date();
router.get(['/', '/rss'], homepage('welcome'));
router.get('/api', homepage('api'));
// context news
router.get('/context/:words', require('./routes/context/keywords'));
// 网易新闻
router.get('/netease/:category', require('./routes/netease/news'));
// 网信办
router.get('/wangxinban/fabu', require('./routes/wangxinban/fabu'));
router.get('/wangxinban/bangongshi', require('./routes/wangxinban/bangongshi'));
router.get('/wangxinban/anquan', require('./routes/wangxinban/anquan'));
router.get('/wangxinban/anquan-guanli', require('./routes/wangxinban/anquan-guanli'));
// 深圳证券交易所上市公司公告[pdf]
router.get('/szse/:secode', require('./routes/szindex/corp'));
// 上海证券交易所上市公司公告[pdf]
router.get('/shse/:secode', require('./routes/shindex/corp'));
// 海淀法院 案件快报
router.get('/hdfy/anjian', require('./routes/hdfy/anjian'));
// 财政部 政策发布
router.get('/caizhengbu/zhengce', require('./routes/caizhengbu/zhengce'));
// 上海市经济和信息化委员会 政务公开
router.get('/shgov/bulletin', require('./routes/shgov/bulletin'));
// 最高人民检察院权威发布
router.get('/jianchayuan/fabu', require('./routes/jianchayuan/fabu'));
router.get('/jianchayuan/xinwen', require('./routes/jianchayuan/xinwen'));
// 国防部权威发布
router.get('/guofangbu/fabu', require('./routes/guofangbu/fabu'));
// 外交部
router.get('/waijiaobu/lingdaoren', require('./routes/waijiaobu/lingdaoren'));
router.get('/waijiaobu/sjxw', require('./routes/waijiaobu/sjxw'));
router.get('/waijiaobu/zwbd', require('./routes/waijiaobu/zwbd'));
// 最高人民法院 新闻
router.get('/zgfy/zuigao', require('./routes/zgfy/zuigaoxw'));
router.get('/zgfy/difang', require('./routes/zgfy/difangxw'));
router.get('/zgfy/jieshi', require('./routes/zgfy/jieshi'));
router.get('/zgfy/zhongda', require('./routes/zgfy/zhongda'));
// 教育部 要闻
router.get('/jiaoyubu/jyyw', require('./routes/jiaoyubu/jyyw'));
// 教育部 通知
router.get('/jiaoyubu/jytz', require('./routes/jiaoyubu/jytz'));
// 发改委 新闻
router.get('/fagaiwei/xinwen', require('./routes/fagaiwei/xinwen'));
// 科技部 最近更新
router.get('/kejibu/gengxin', require('./routes/kejibu/gengxin'));
// 工业和信息化部
router.get('/gongxinbu/dongtai', require('./routes/gongxinbu/dongtai'));
router.get('/gongxinbu/duiwai', require('./routes/gongxinbu/duiwai'));
router.get('/gongxinbu/gongzuo', require('./routes/gongxinbu/gongzuo'));
router.get('/gongxinbu/lingdao', require('./routes/gongxinbu/lingdao'));
router.get('/gongxinbu/wenjian', require('./routes/gongxinbu/wenjian'));
router.get('/gongxinbu/tongji-zonghe', require('./routes/gongxinbu/tongji-zonghe'));
router.get('/gongxinbu/tongji-dianzi', require('./routes/gongxinbu/tongji-dianzi'));
router.get('/gongxinbu/tongji-ruanjian', require('./routes/gongxinbu/tongji-ruanjian'));
router.get('/gongxinbu/tongji-tongxin', require('./routes/gongxinbu/tongji-tongxin'));
router.get('/gongxinbu/tongji-xiaofeipin', require('./routes/gongxinbu/tongji-xiaofeipin'));
router.get('/gongxinbu/tongji-yuancailiao', require('./routes/gongxinbu/tongji-yuancailiao'));
router.get('/gongxinbu/tongji-zhuangbei', require('./routes/gongxinbu/tongji-zhuangbei'));
// 公安部 通知公告
router.get('/gonganbu/bulletin', require('./routes/gonganbu/bulletin'));
// 国务院办公厅政府信息公开
router.get('/guowuyuan/zhengce/:topic/:category', require('./routes/guowuyuan/zhengce'));
router.get('/guowuyuan/dongtai', require('./routes/guowuyuan/dongtai'));
router.get('/guowuyuan/shuju', require('./routes/guowuyuan/shuju'));
router.get('/guowuyuan/xinwen', require('./routes/guowuyuan/xinwen'));
router.get('/guowuyuan/zhengce-zuixin', require('./routes/guowuyuan/zhengce-zuixin'));
router.get('/guowuyuan/fazhiban', require('./routes/guowuyuan/fazhiban'));
// 国家广播电视总局
router.get('/guangdian/tongzhi', require('./routes/guangdian/tongzhi'));
router.get('/guangdian/movie-beian', require('./routes/guangdian/movie-beian'));
router.get('/guangdian/movie-xuke', require('./routes/guangdian/movie-xuke'));
// 国家税务总局
router.get('/shuiwu/yaowen', require('./routes/shuiwu/yaowen'));
// 国家体育总局
router.get('/tiyu/tongzhi', require('./routes/tiyu/tongzhi'));
router.get('/tiyu/difang', require('./routes/tiyu/difang'));
// 国家市场监督管理总局 通告
router.get('/shichang/zhaohui', require('./routes/shichang/zhaohui'));
router.get('/shichang/gonggao', require('./routes/shichang/gonggao'));
router.get('/shichang/tonggao', require('./routes/shichang/tonggao'));
router.get('/shichang/xinwen', require('./routes/shichang/xinwen'));
router.get('/shichang/wenjian', require('./routes/shichang/wenjian'));
// 国家宗教事务局
router.get('/zongjiao/bu', require('./routes/zongjiao/bu'));
router.get('/zongjiao/difang', require('./routes/zongjiao/difang'));
router.get('/zongjiao/zongjiao', require('./routes/zongjiao/zongjiao'));
// 海关总署
router.get('/haiguan/dongtai', require('./routes/haiguan/dongtai'));
// 国家知识产权局
router.get('/ip/gongzuo', require('./routes/ip/gongzuo'));
router.get('/ip/tongzhi', require('./routes/ip/tongzhi'));
// 住房和城乡建设部
router.get('/zhufang/yaowen', require('./routes/zhufang/yaowen'));
router.get('/zhufang/xinxi', require('./routes/zhufang/xinxi'));
router.get('/zhufang/difang', require('./routes/zhufang/difang'));
// 四川省纪检委
router.get('/gov/sichuan/jijian', require('./routes/gov-sichuan/jijian'));
// 纪检委
router.get('/jijian/yaowen', require('./routes/jijian/yaowen'));
router.get('/jijian/zhongguansc', require('./routes/jijian/zhongguansc'));
router.get('/jijian/zhongguancf', require('./routes/jijian/zhongguancf'));
router.get('/jijian/zhongyangsc', require('./routes/jijian/zhongyangsc'));
router.get('/jijian/zhongyangcf', require('./routes/jijian/zhongyangcf'));
router.get('/jijian/shenguansc', require('./routes/jijian/shenguansc'));
router.get('/jijian/shenguancf', require('./routes/jijian/shenguancf'));
// 人力资源和社保部
router.get('/renshe/shebao', require('./routes/renshe/shebao'));
router.get('/renshe/xinwen', require('./routes/renshe/xinwen'));
router.get('/renshe/zhengce', require('./routes/renshe/zhengce'));
// 外汇管理局
router.get('/waihui/yaowen', require('./routes/waihui/yaowen'));
// 进出口图表
router.get('/chart/exports', require('./routes/datajournal/exports'));
router.get('/chart/stats/category', require('./routes/stats/category'));
router.get('/chart/stats/:sourceid/:sessionid', require('./routes/stats/easyquery'));
router.get('/wikipedia/year', require('./routes/wikipedia/cal'));
// 政协 新闻
router.get('/cppcc/news', require('./routes/cppcc/news'));
router.get('/cppcc/fabu', require('./routes/cppcc/fabu'));
// 卫健委 最新信息
router.get('/weijianwei/news', require('./routes/weijianwei/news'));
// 疾病预防控制中心
router.get('/cdc/news', require('./routes/cdc/news'));
// un veto
router.get('/un/veto', require('./routes/un/veto'));
router.get('/sina/:cate', require('./routes/sina/rollnews'));
router.get('/cankao/roll', require('./routes/cankaoxiaoxi/index'));
router.get('/weibo/topic/:query', require('./routes/weibo/topic'));
router.get('/weibo/toutiao/:query', require('./routes/weibo/toutiao'));
router.get('/weibo/video/:query', require('./routes/weibo/video'));
// 药监局 新闻
router.get('/nmpa/news', require('./routes/nmpa/news'));
// 民政部
router.get('/minzhengbu/news', require('./routes/minzhengbu/index'));
router.get('/minzhengbu/tongji', require('./routes/minzhengbu/tongji'));
// 农业农村部
router.get('/nongye/guoji', require('./routes/nongye/guoji'));
// 商务部
router.get('/shangwu/richang', require('./routes/shangwu/richang'));
router.get('/shangwu/fayan', require('./routes/shangwu/fayan'));
router.get('/shangwu/zhuanti', require('./routes/shangwu/zhuanti'));
// 司法部
router.get('/sifa/zhengfa', require('./routes/sifa/zhengfa'));
router.get('/sifa/chufa', require('./routes/sifa/chufa'));
// 网信办 相关部门发布
// http://search.cac.gov.cn/was5/web/search?channelid=246506&prepage=36&searchword=extend5%3D%27%251192649%25%27
// 办公室发布
// http://search.cac.gov.cn/was5/web/search?channelid=246506&prepage=36&searchword=extend5%3D%27%251192648%25%27
// 科技部工作
// http://appweblogic.most.gov.cn/rss/kjbgz.xml
// 国家发改委
// http://www.ndrc.gov.cn/xwzx/xwfb/rss.xml
// 政策发布 通知
// http://www.ndrc.gov.cn/zcfb/zcfbtz/rss.xml
// 国家统计局 最新发布
// http://www.stats.gov.cn/tjsj/zxfb/rss.xml
// 民委动态
// http://www.seac.gov.cn/col/col32/index.html
// http://www.seac.gov.cn/module/rss/rssfeed.jsp?colid=31
// 工业信息部
// 领导活动
// http://www.miit.gov.cn/n1146290/n1146397/index.html
// 工作动态
// http://www.miit.gov.cn/n1146290/n1146402/index.html
// 信息公示
// http://www.miit.gov.cn/n1146295/n1652858/n1653100/index.html
// 政府信息公开专栏
// http://www.miit.gov.cn/n1146295/n1146592/index.html
// 数据 统计分析 综合
// http://www.miit.gov.cn/n1146312/n1146904/n1648355/index.html
// 政策解读
// http://www.miit.gov.cn/n1146295/n1652858/n1653018/index.html
// 北京法院 裁判文书
// router.get('/bjfy/wenshu', require('./routes/bjfy/wenshu'));
// 今日头条
// router.get('/jrtt/:category', require('./routes/jinritoutiao/news'));
// 中国裁判文书网
// router.get('/court/wenshu', require('./routes/court/wenshu'));
// US
// HUD Press Release
router.get('/us/hud/news', require('./routes/us/hud/news'));
router.get('/us/treasury/press', require('./routes/us/treasury/press'));
router.get('/us/transportation/press', require('./routes/us/transportation/press'));
module.exports = router;