mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
21 lines
433 B
JavaScript
21 lines
433 B
JavaScript
/**
|
|
Handles routes for admin groups
|
|
|
|
@class AdminGroupsRoute
|
|
@extends Discourse.Route
|
|
@namespace Discourse
|
|
@module Discourse
|
|
**/
|
|
Discourse.AdminGroupsRoute = Discourse.Route.extend({
|
|
|
|
model: function() {
|
|
return Discourse.Group.findAll();
|
|
},
|
|
|
|
setupController: function(controller, model) {
|
|
controller.set('model', model);
|
|
controller.set('aliasLevelOptions', Discourse.Group.aliasLevelOptions());
|
|
}
|
|
|
|
});
|
|
|