mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Interface is wired up for Approving/Rejecting posts
This commit is contained in:
@ -173,6 +173,14 @@ export default function() {
|
||||
});
|
||||
});
|
||||
|
||||
this.get('/fruits/:id', function() {
|
||||
return response({
|
||||
__rest_serializer: "1",
|
||||
fruit: {id: 1, name: 'apple', farmer_id: 1},
|
||||
farmers: [{id: 1, name: 'Evil Trout'}]
|
||||
});
|
||||
});
|
||||
|
||||
this.get('/widgets/:widget_id', function(request) {
|
||||
const w = _widgets.findBy('id', parseInt(request.params.widget_id));
|
||||
if (w) {
|
||||
|
Reference in New Issue
Block a user