Ghost/ghost/admin/app/adapters/mention.js
Ronald Langeveld 57bc14e00f
Added Mentions endpoint to Admin (#16136)
ref https://github.com/TryGhost/Team/issues/2421

- added the Mentions API endpoint to Admin
- setup initial mention model in the Ember Store to be able to dev with the endpoint
- added basic routing to access the `/mentions` page that is currently behind feature flags
- Setup basic testing with a mirage mock endpoint.
2023-01-17 20:16:18 +08:00

9 lines
237 B
JavaScript

import ApplicationAdapter from 'ghost-admin/adapters/application';
export default class Mention extends ApplicationAdapter {
queryRecord() {
let url = this.buildURL('mentions');
return this.ajax(url, 'GET');
}
}