mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
38 lines
No EOL
697 B
JavaScript
38 lines
No EOL
697 B
JavaScript
AdminController = RouteController.extend({
|
|
|
|
template: "adminWrapper"
|
|
|
|
});
|
|
|
|
Meteor.startup(function (){
|
|
|
|
// Settings
|
|
|
|
Router.route('/settings', {
|
|
controller: AdminController,
|
|
name: 'settings',
|
|
// layoutTemplate: getTemplate('adminLayout'),
|
|
data: function () {
|
|
// we only have one set of settings for now
|
|
return {
|
|
hasSettings: !!Settings.find().count(),
|
|
settings: Settings.findOne()
|
|
}
|
|
}
|
|
});
|
|
|
|
// Loading (for testing purposes)
|
|
|
|
Router.route('/loading', {
|
|
name: 'loading',
|
|
template: getTemplate('loading')
|
|
});
|
|
|
|
// Toolbox
|
|
|
|
Router.route('/toolbox', {
|
|
name: 'toolbox',
|
|
template: getTemplate('toolbox')
|
|
});
|
|
|
|
}); |