2013-06-03 16:12:24 -04:00
|
|
|
/**
|
|
|
|
Handles routes for admin reports
|
|
|
|
|
|
|
|
@class AdminReportsRoute
|
|
|
|
@extends Discourse.Route
|
|
|
|
@namespace Discourse
|
|
|
|
@module Discourse
|
|
|
|
**/
|
2013-02-27 22:39:42 -05:00
|
|
|
Discourse.AdminReportsRoute = Discourse.Route.extend({
|
|
|
|
model: function(params) {
|
2013-06-03 16:12:24 -04:00
|
|
|
return Discourse.Report.find(params.type);
|
2013-02-27 22:39:42 -05:00
|
|
|
}
|
|
|
|
});
|