mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +03:00
14 lines
284 B
JavaScript
14 lines
284 B
JavaScript
import {isEmpty} from '@ember/utils';
|
|
|
|
export default function mockSite(server) {
|
|
server.get('/site/', function ({db}) {
|
|
if (isEmpty(db.sites)) {
|
|
server.loadFixtures('sites');
|
|
}
|
|
|
|
return {
|
|
site: db.sites.find(1)
|
|
};
|
|
});
|
|
}
|