mirror of
https://github.com/discourse/discourse.git
synced 2025-03-05 21:05:28 +08:00
11 lines
291 B
JavaScript
11 lines
291 B
JavaScript
import { ajax } from 'discourse/lib/ajax';
|
|
import RestAdapter from 'discourse/adapters/rest';
|
|
|
|
export default RestAdapter.extend({
|
|
find(store, type, findArgs) {
|
|
return ajax(`/posts/${findArgs.postId}/replies`).then(replies => {
|
|
return { post_replies: replies };
|
|
});
|
|
},
|
|
});
|