fix: scope's method
This commit is contained in:
parent
95e195a5de
commit
faee03069c
3 changed files with 2 additions and 0 deletions
BIN
js/dist/admin.js
generated
vendored
BIN
js/dist/admin.js
generated
vendored
Binary file not shown.
BIN
js/dist/admin.js.map
generated
vendored
BIN
js/dist/admin.js.map
generated
vendored
Binary file not shown.
|
@ -86,6 +86,8 @@ export default class ScopesPage extends Page {
|
||||||
const scope = app.store.createRecord('oauth-scopes');
|
const scope = app.store.createRecord('oauth-scopes');
|
||||||
scope.save({
|
scope.save({
|
||||||
'scope': 'Scope.' + this.randomString(8),
|
'scope': 'Scope.' + this.randomString(8),
|
||||||
|
'resource_path': '/api/' + this.randomString(4),
|
||||||
|
'method': 'GET',
|
||||||
}).then(this.scopes.push(scope));
|
}).then(this.scopes.push(scope));
|
||||||
},
|
},
|
||||||
}, app.translator.trans(this.translationPrefix + 'add_button')))),
|
}, app.translator.trans(this.translationPrefix + 'add_button')))),
|
||||||
|
|
Loading…
Reference in a new issue