FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
parse-server/Config.js at master · codelabsprodev/parse-server · GitHub
codelabsprodev
/
parse-server
Public
forked from
parse-community/parse-server
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
parse-server
/
Config.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (24 loc) · 913 Bytes
Breadcrumbs
parse-server
/
Config.js
Copy path
File metadata and controls
28 lines (24 loc) · 913 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
// A Config object provides information about how a specific app is
// configured.
// mount is the URL for the root of the API; includes http, domain, etc.
function
Config
(
applicationId
,
mount
)
{
var
cache
=
require
(
'./cache'
)
;
var
DatabaseAdapter
=
require
(
'./DatabaseAdapter'
)
;
var
cacheInfo
=
cache
.
apps
[
applicationId
]
;
this
.
valid
=
!
!
cacheInfo
;
if
(
!
this
.
valid
)
{
return
;
}
this
.
applicationId
=
applicationId
;
this
.
collectionPrefix
=
cacheInfo
.
collectionPrefix
||
''
;
this
.
database
=
DatabaseAdapter
.
getDatabaseConnection
(
applicationId
)
;
this
.
masterKey
=
cacheInfo
.
masterKey
;
this
.
clientKey
=
cacheInfo
.
clientKey
;
this
.
javascriptKey
=
cacheInfo
.
javascriptKey
;
this
.
dotNetKey
=
cacheInfo
.
dotNetKey
;
this
.
restAPIKey
=
cacheInfo
.
restAPIKey
;
this
.
fileKey
=
cacheInfo
.
fileKey
;
this
.
facebookAppIds
=
cacheInfo
.
facebookAppIds
;
this
.
mount
=
mount
;
}
module
.
exports
=
Config
;
Back
|
FazBrowse Home
|
New Git URL