mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 17:51:16 +08:00
Move identity map into the store, shouldn't have been in the adapter
This commit is contained in:
@ -99,6 +99,12 @@ export default function() {
|
||||
}
|
||||
});
|
||||
|
||||
this.put('/widgets/:widget_id', function(request) {
|
||||
const w = _widgets.findBy('id', parseInt(request.params.widget_id));
|
||||
const cloned = JSON.parse(JSON.stringify(w));
|
||||
return response({ widget: cloned });
|
||||
});
|
||||
|
||||
this.get('/widgets', function() {
|
||||
return response({ widgets: _widgets });
|
||||
});
|
||||
|
Reference in New Issue
Block a user