mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
More deprecations to allow us to work on future versions of Ember
This commit is contained in:
@ -15,6 +15,10 @@ function response(code, obj) {
|
||||
return [code, {"Content-Type": "application/json"}, obj];
|
||||
}
|
||||
|
||||
function success() {
|
||||
return response();
|
||||
}
|
||||
|
||||
export default function() {
|
||||
var server = new Pretender(function() {
|
||||
|
||||
@ -77,6 +81,9 @@ export default function() {
|
||||
this.get('/login.html', function() {
|
||||
return [200, {}, 'LOGIN PAGE'];
|
||||
});
|
||||
|
||||
this.delete('/posts/:post_id', success);
|
||||
this.put('/posts/:post_id/recover', success);
|
||||
});
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user