rename api to goldilocks
This commit is contained in:
parent
0fdd2773b5
commit
c7627faffd
|
@ -151,7 +151,7 @@ angular.module('com.daplie.cloud', [ 'org.oauth3' ])
|
|||
|
||||
return OAUTH3.request({
|
||||
method: 'POST'
|
||||
, url: 'https://' + vm.clientUri + '/api/com.daplie.caddy/init'
|
||||
, url: 'https://' + vm.clientUri + '/api/com.daplie.goldilocks/init'
|
||||
, session: session
|
||||
, data: {
|
||||
access_token: session.access_token
|
||||
|
@ -175,7 +175,7 @@ angular.module('com.daplie.cloud', [ 'org.oauth3' ])
|
|||
console.info('Initialized Goldilocks', resp);
|
||||
return OAUTH3.request({
|
||||
method: 'GET'
|
||||
, url: 'https://' + vm.clientUri + '/api/com.daplie.caddy/config'
|
||||
, url: 'https://' + vm.clientUri + '/api/com.daplie.goldilocks/config'
|
||||
, session: session
|
||||
}).then(function (configResp) {
|
||||
console.log('config', configResp.data);
|
||||
|
@ -213,7 +213,7 @@ angular.module('com.daplie.cloud', [ 'org.oauth3' ])
|
|||
vm.admin.network.iface = 'gateway';
|
||||
return OAUTH3.request({
|
||||
method: 'POST'
|
||||
, url: 'https://' + vm.clientUri + '/api/com.daplie.caddy/request'
|
||||
, url: 'https://' + vm.clientUri + '/api/com.daplie.goldilocks/request'
|
||||
, session: session
|
||||
, data: {
|
||||
method: 'GET'
|
||||
|
@ -244,7 +244,7 @@ angular.module('com.daplie.cloud', [ 'org.oauth3' ])
|
|||
|
||||
return oauth3.request({
|
||||
method: 'POST'
|
||||
, url: 'https://' + vm.clientUri + '/api/com.daplie.caddy/tunnel'
|
||||
, url: 'https://' + vm.clientUri + '/api/com.daplie.goldilocks/tunnel'
|
||||
/*
|
||||
, data: {
|
||||
method: 'GET'
|
||||
|
|
12
lib/app.js
12
lib/app.js
|
@ -55,7 +55,7 @@ module.exports = function (deps, conf, overrideHttp) {
|
|||
var scmp = require('scmp');
|
||||
request = request || PromiseA.promisify(require('request'));
|
||||
|
||||
return require('../packages/apis/com.daplie.caddy').create({
|
||||
return require('../packages/apis/com.daplie.goldilocks').create({
|
||||
PromiseA: PromiseA
|
||||
, OAUTH3: OAUTH3
|
||||
, storage: {
|
||||
|
@ -297,24 +297,24 @@ module.exports = function (deps, conf, overrideHttp) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (0 === req.url.indexOf('/api/com.daplie.caddy/')) {
|
||||
if (0 === req.url.indexOf('/api/com.daplie.goldilocks/')) {
|
||||
if (!serveInit) {
|
||||
serveInit = createServeInit();
|
||||
}
|
||||
}
|
||||
if ('/api/com.daplie.caddy/init' === req.url) {
|
||||
if ('/api/com.daplie.goldilocks/init' === req.url) {
|
||||
serveInit.init(req, res);
|
||||
return;
|
||||
}
|
||||
if ('/api/com.daplie.caddy/tunnel' === req.url) {
|
||||
if ('/api/com.daplie.goldilocks/tunnel' === req.url) {
|
||||
serveInit.tunnel(req, res);
|
||||
return;
|
||||
}
|
||||
if ('/api/com.daplie.caddy/config' === req.url) {
|
||||
if ('/api/com.daplie.goldilocks/config' === req.url) {
|
||||
serveInit.config(req, res);
|
||||
return;
|
||||
}
|
||||
if ('/api/com.daplie.caddy/request' === req.url) {
|
||||
if ('/api/com.daplie.goldilocks/request' === req.url) {
|
||||
serveInit.request(req, res);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ module.exports.create = function (deps, conf) {
|
|||
|
||||
opts.groups = [];
|
||||
|
||||
// 'packages', 'assets', 'com.daplie.caddy'
|
||||
// 'packages', 'assets', 'com.daplie.goldilocks'
|
||||
opts.global = {
|
||||
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 }
|
||||
|
|
Loading…
Reference in New Issue