rename api to goldilocks

This commit is contained in:
AJ ONeal 2017-04-27 19:34:13 -06:00
parent 0fdd2773b5
commit c7627faffd
5 changed files with 11 additions and 11 deletions

View File

@ -151,7 +151,7 @@ angular.module('com.daplie.cloud', [ 'org.oauth3' ])
return OAUTH3.request({ return OAUTH3.request({
method: 'POST' method: 'POST'
, url: 'https://' + vm.clientUri + '/api/com.daplie.caddy/init' , url: 'https://' + vm.clientUri + '/api/com.daplie.goldilocks/init'
, session: session , session: session
, data: { , data: {
access_token: session.access_token access_token: session.access_token
@ -175,7 +175,7 @@ angular.module('com.daplie.cloud', [ 'org.oauth3' ])
console.info('Initialized Goldilocks', resp); console.info('Initialized Goldilocks', resp);
return OAUTH3.request({ return OAUTH3.request({
method: 'GET' method: 'GET'
, url: 'https://' + vm.clientUri + '/api/com.daplie.caddy/config' , url: 'https://' + vm.clientUri + '/api/com.daplie.goldilocks/config'
, session: session , session: session
}).then(function (configResp) { }).then(function (configResp) {
console.log('config', configResp.data); console.log('config', configResp.data);
@ -213,7 +213,7 @@ angular.module('com.daplie.cloud', [ 'org.oauth3' ])
vm.admin.network.iface = 'gateway'; vm.admin.network.iface = 'gateway';
return OAUTH3.request({ return OAUTH3.request({
method: 'POST' method: 'POST'
, url: 'https://' + vm.clientUri + '/api/com.daplie.caddy/request' , url: 'https://' + vm.clientUri + '/api/com.daplie.goldilocks/request'
, session: session , session: session
, data: { , data: {
method: 'GET' method: 'GET'
@ -244,7 +244,7 @@ angular.module('com.daplie.cloud', [ 'org.oauth3' ])
return oauth3.request({ return oauth3.request({
method: 'POST' method: 'POST'
, url: 'https://' + vm.clientUri + '/api/com.daplie.caddy/tunnel' , url: 'https://' + vm.clientUri + '/api/com.daplie.goldilocks/tunnel'
/* /*
, data: { , data: {
method: 'GET' method: 'GET'

View File

@ -55,7 +55,7 @@ module.exports = function (deps, conf, overrideHttp) {
var scmp = require('scmp'); var scmp = require('scmp');
request = request || PromiseA.promisify(require('request')); request = request || PromiseA.promisify(require('request'));
return require('../packages/apis/com.daplie.caddy').create({ return require('../packages/apis/com.daplie.goldilocks').create({
PromiseA: PromiseA PromiseA: PromiseA
, OAUTH3: OAUTH3 , OAUTH3: OAUTH3
, storage: { , storage: {
@ -297,24 +297,24 @@ module.exports = function (deps, conf, overrideHttp) {
return; return;
} }
if (0 === req.url.indexOf('/api/com.daplie.caddy/')) { if (0 === req.url.indexOf('/api/com.daplie.goldilocks/')) {
if (!serveInit) { if (!serveInit) {
serveInit = createServeInit(); serveInit = createServeInit();
} }
} }
if ('/api/com.daplie.caddy/init' === req.url) { if ('/api/com.daplie.goldilocks/init' === req.url) {
serveInit.init(req, res); serveInit.init(req, res);
return; return;
} }
if ('/api/com.daplie.caddy/tunnel' === req.url) { if ('/api/com.daplie.goldilocks/tunnel' === req.url) {
serveInit.tunnel(req, res); serveInit.tunnel(req, res);
return; return;
} }
if ('/api/com.daplie.caddy/config' === req.url) { if ('/api/com.daplie.goldilocks/config' === req.url) {
serveInit.config(req, res); serveInit.config(req, res);
return; return;
} }
if ('/api/com.daplie.caddy/request' === req.url) { if ('/api/com.daplie.goldilocks/request' === req.url) {
serveInit.request(req, res); serveInit.request(req, res);
return; return;
} }

View File

@ -15,7 +15,7 @@ module.exports.create = function (deps, conf) {
opts.groups = []; opts.groups = [];
// 'packages', 'assets', 'com.daplie.caddy' // 'packages', 'assets', 'com.daplie.goldilocks'
opts.global = { opts.global = {
modules: [ // TODO uh-oh we've got a mixed bag of modules (various types), a true map modules: [ // TODO uh-oh we've got a mixed bag of modules (various types), a true map
{ $id: 'greenlock', email: opts.email, tos: opts.tos } { $id: 'greenlock', email: opts.email, tos: opts.tos }