-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainRouter.js
More file actions
34 lines (30 loc) · 851 Bytes
/
MainRouter.js
File metadata and controls
34 lines (30 loc) · 851 Bytes
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
/**
* Главный роутер приложения.
*/
Ext.define('B.MainRouter', {
extend: 'B.AbstractRouter',
requires: [
'B.biz.search.Router',
'B.biz.company.Router',
'B.biz.reviews.Router',
'B.biz.auth.Router',
'B.biz.client.Router',
'B.biz.partner.Router'
],
delegate: {
'/api/search': 'B.biz.search.Router',
'/api/company': 'B.biz.company.Router',
'/api/reviews': 'B.biz.reviews.Router',
'/api/auth': 'B.biz.auth.Router',
'/api/client': 'B.biz.client.Router',
'/api/partner': 'B.biz.partner.Router'
},
config: {
callback: null
},
constructor: function () {
this.callParent(arguments);
B.Main.getExpressApp().use(this.getExpressRouter());
this.getCallback()();
}
});