discourse/app/assets/javascripts/admin/routes/admin_user_route.js

18 lines
339 B
JavaScript
Raw Normal View History

(function() {
/**
Handles routes related to users.
@class AdminUserRoute
@extends Discourse.Route
@namespace Discourse
@module Discourse
**/
Discourse.AdminUserRoute = Discourse.Route.extend({
model: function(params) {
return Discourse.AdminUser.find(params.username);
}
});
}).call(this);