mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-21 11:21:44 +01:00
feat(forums): add forums server policy & routes & controller
This commit is contained in:
@@ -5,13 +5,18 @@
|
||||
.module('forums')
|
||||
.controller('ForumsController', ForumsController);
|
||||
|
||||
ForumsController.$inject = ['$scope', '$translate'];
|
||||
ForumsController.$inject = ['$scope', '$translate', 'Authentication', 'MeanTorrentConfig', 'ForumsAdminService'];
|
||||
|
||||
function ForumsController($scope, $translate) {
|
||||
function ForumsController($scope, $translate, Authentication, MeanTorrentConfig, ForumsAdminService) {
|
||||
var vm = this;
|
||||
vm.formsConfig = MeanTorrentConfig.meanTorrentConfig.forumsConfig;
|
||||
vm.user = Authentication.user;
|
||||
|
||||
vm.init = function () {
|
||||
|
||||
ForumsAdminService.query({}, function (items) {
|
||||
vm.forums = items;
|
||||
console.log(items);
|
||||
});
|
||||
};
|
||||
}
|
||||
}());
|
||||
|
||||
Reference in New Issue
Block a user