11 lines
290 B
JavaScript
11 lines
290 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 };
|
|
});
|
|
}
|
|
});
|