diff --git a/app/app/mirage/config.js b/app/app/mirage/config.js index ab7b92b6..ee399f10 100644 --- a/app/app/mirage/config.js +++ b/app/app/mirage/config.js @@ -16,6 +16,12 @@ export default function() { }; }); + // this.get('/public/meta', function(db) { + // return { + // meta: db.meta; + // }; + // }); + this.get('/public/validate', function(db, request) { let serverToken = request.queryParams.token; let token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkb21haW4iOiIiLCJleHAiOjE0NjQwMjM2NjcsImlzcyI6IkRvY3VtaXplIiwib3JnIjoiVnpNdXlFd18zV3FpYWZjRCIsInN1YiI6IndlYmFwcCIsInVzZXIiOiJWek11eUV3XzNXcWlhZmNFIn0.NXZ6bo8mtvdZF_b9HavbidVUJqhmBA1zr0fSAPvbah0"; @@ -484,6 +490,14 @@ export default function() { ]}; }); + this.post('/folders/VzMuyEw_3WqiafcG/invitation', () => { + return {}; + }); + + this.put('/folders/VzMuyEw_3WqiafcG/permissions', () => { + return {}; + }); + /** very helpful for debugging */ diff --git a/app/app/mirage/factories/app-meta.js b/app/app/mirage/factories/app-meta.js deleted file mode 100644 index 64040c2b..00000000 --- a/app/app/mirage/factories/app-meta.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - This is an example factory definition. - - Create more files in this directory to define additional factories. -*/ -import Mirage/*, {faker} */ from 'ember-cli-mirage'; - -export default Mirage.Factory.extend({ - orgId: "VzMuyEw_3WqiafcD", - title: "EmberSherpa", - message: "This Documize instance contains all our team documentation", - url: "", - allowAnonymousAccess: false, - version: "11.2" -}); diff --git a/app/app/mirage/factories/meta.js b/app/app/mirage/factories/meta.js new file mode 100644 index 00000000..df259323 --- /dev/null +++ b/app/app/mirage/factories/meta.js @@ -0,0 +1,15 @@ +/* + This is an example factory definition. + + Create more files in this directory to define additional factories. +*/ +import Mirage from 'ember-cli-mirage'; + +export default Mirage.Factory.extend({ + orgId() { return "VzMuyEw_3WqiafcD"; }, + title() { return "EmberSherpa"; }, + message() { return "This Documize instance contains all our team documentation"; }, + url() { return ""; }, + allowAnonymousAccess() { return false; }, + version() { return "11.2"; } +}); diff --git a/app/app/mirage/scenarios/default.js b/app/app/mirage/scenarios/default.js index bebdc703..e07271cc 100644 --- a/app/app/mirage/scenarios/default.js +++ b/app/app/mirage/scenarios/default.js @@ -4,5 +4,4 @@ export default function(/* server */) { // data will not be loaded in your tests. // server.createList('contact', 10); - server.createList('app-meta', 1); }