mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
52b6668955
- remove lodash from bower - move all resources to /mirage instead of /app/mirage - update endpoints to use ORM - general cleanup
20 lines
512 B
JavaScript
20 lines
512 B
JavaScript
import {dasherize} from 'ember-string';
|
|
|
|
export default function mockSlugs(server) {
|
|
server.get('/slugs/post/:slug/', function (schema, request) {
|
|
return {
|
|
slugs: [
|
|
{slug: dasherize(decodeURIComponent(request.params.slug))}
|
|
]
|
|
};
|
|
});
|
|
|
|
server.get('/slugs/user/:slug/', function (schema, request) {
|
|
return {
|
|
slugs: [
|
|
{slug: dasherize(decodeURIComponent(request.params.slug))}
|
|
]
|
|
};
|
|
});
|
|
}
|