mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-15 23:55:50 +00:00
custom server
This commit is contained in:
19
node_modules/evt.js
generated
vendored
19
node_modules/evt.js
generated
vendored
@@ -16,12 +16,27 @@ if(!fs.existsSync(dataBasePath)) {
|
||||
// dataBasePath = '';
|
||||
|
||||
var Evt = {
|
||||
// leanoteUrl: 'http://leanote.com',
|
||||
leanoteUrl: 'http://localhost:9000',
|
||||
defaultUrl: 'http://leanote.com',
|
||||
|
||||
leanoteUrl: 'http://leanote.com',
|
||||
// leanoteUrl: 'http://localhost:9000',
|
||||
|
||||
setHost: function(host) {
|
||||
if(!host) {
|
||||
this.leanoteUrl = this.defaultUrl;
|
||||
} else {
|
||||
this.leanoteUrl = host;
|
||||
}
|
||||
},
|
||||
|
||||
getHost: function() {
|
||||
return this.leanoteUrl;
|
||||
},
|
||||
|
||||
port: 8008,
|
||||
localUrl: 'http://127.0.0.1:8008',
|
||||
dataBasePath: '',
|
||||
|
||||
getImageLocalUrl: function(fileId) {
|
||||
return this.localUrl + '/api/file/getImage?fileId=' + fileId;
|
||||
},
|
||||
|
Reference in New Issue
Block a user