-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp-config.js
34 lines (34 loc) · 922 Bytes
/
app-config.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
/**
* Initialize namespace for the application,
* this is the only variable added to the global object
*/
var MYSP = {
Config: {},
Utils: {},
Models: {},
Views: {},
ViewsConfig: {},
Events: {}
};
(function(app) {
/**
* PRODUCTION configuration
*/
app.Config = {
host: 'http://localhost:8484', // set url without trailing slash
appPrefix: 'mysp-',
authApiUrl: 'https://accounts.spotify.com/authorize',
apiBaseURL: 'https://api.spotify.com/v1',
defaultRoute: {page: 'search'},
clientId: 'c951c431070c4306a8da5fe51d838eb9',
authCallback: '/auth-callback.html',
authScopes: [
'user-read-private',
'playlist-read-private',
'playlist-modify-public',
'playlist-modify-private',
'user-library-read',
'user-library-modify'
]
};
})(MYSP);