mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-08 21:56:12 +02:00
lint: src/node/handler/APIHandler.js
This commit is contained in:
parent
ee9bb019b2
commit
a7d9a703cd
@ -1,3 +1,4 @@
|
||||
'use strict';
|
||||
/**
|
||||
* The API Handler handles all API http requests
|
||||
*/
|
||||
@ -37,7 +38,8 @@ try {
|
||||
apikey = fs.readFileSync(apikeyFilename, 'utf8');
|
||||
apiHandlerLogger.info(`Api key file read from: "${apikeyFilename}"`);
|
||||
} catch (e) {
|
||||
apiHandlerLogger.info(`Api key file "${apikeyFilename}" not found. Creating with random contents.`);
|
||||
apiHandlerLogger.info(
|
||||
`Api key file "${apikeyFilename}" not found. Creating with random contents.`);
|
||||
apikey = randomString(32);
|
||||
fs.writeFileSync(apikeyFilename, apikey, 'utf8');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user