mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03:00
17 lines
404 B
JavaScript
17 lines
404 B
JavaScript
import ApplicationAdapter from './application';
|
|
|
|
export default ApplicationAdapter.extend({
|
|
|
|
queryRecord(store, type, query) {
|
|
if (!query || query.id !== 'me') {
|
|
return this._super(...arguments);
|
|
}
|
|
|
|
let url = `${this.buildURL('users', 'me')}token/`;
|
|
return this.ajax(url, 'GET', {data: {}}).then((data) => {
|
|
return data;
|
|
});
|
|
}
|
|
|
|
});
|