dev-api: add developer portal, OpenAPI spec, and Flatenbadet case study
- New /developers/ page with API docs, SDKs, pricing, use cases - OpenAPI 3.0 spec for Orders, Missions, Photos, Analytics - Case study: Glasskiosken i Flatenbadet — complete ROI analysis - Updated /order/ with recurring missions and frequency dropdown
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
'use strict';
|
||||
|
||||
var path = require('path')
|
||||
, fs = require('fs')
|
||||
, helper = require('./helper.js')
|
||||
;
|
||||
|
||||
|
||||
module.exports = function(connInfo, cb) {
|
||||
var file = helper.getFileName();
|
||||
|
||||
fs.stat(file, function(err, stat){
|
||||
if (err || !helper.usePgPass(stat, file)) {
|
||||
return cb(undefined);
|
||||
}
|
||||
|
||||
var st = fs.createReadStream(file);
|
||||
|
||||
helper.getPassword(connInfo, st, cb);
|
||||
});
|
||||
};
|
||||
|
||||
module.exports.warnTo = helper.warnTo;
|
||||
Reference in New Issue
Block a user