mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +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;
|
|
});
|
|
}
|
|
|
|
});
|