mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03:00
57bc14e00f
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.
16 lines
583 B
JavaScript
16 lines
583 B
JavaScript
import Model, {attr} from '@ember-data/model';
|
|
|
|
// @todo this is a temporary model until we have the api / db model structure figured out
|
|
export default Model.extend({
|
|
source: attr('string'),
|
|
target: attr('string'),
|
|
timestamp: attr('date'),
|
|
resourceId: attr('string', {allowNull: true}),
|
|
sourceTitle: attr('string'),
|
|
sourcExcerpt: attr('string'),
|
|
sourceFavicon: attr('string'),
|
|
sourceFeaturedImage: attr('string'),
|
|
payload: attr(),
|
|
mentions: attr() // @todo this is a temporary field until we have the api / db model structure figured out
|
|
});
|