| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 | 
							- Router.onBeforeAction('loading');
 
- Router.configure({
 
-     loadingTemplate: 'loading'
 
- });
 
- Router.route("/", {
 
-     template: "home"
 
- });
 
- Router.route("/login", {
 
-     template: "login"
 
- });
 
- Router.route("/signup", {
 
-     template: "register"
 
- });
 
- Router.route("/terms", {
 
-     template: "terms"
 
- });
 
- Router.route("/api", {
 
-     template: "api"
 
- });
 
- Router.route("/privacy", {
 
-     template: "privacy"
 
- });
 
- Router.route("/about", {
 
-     template: "about"
 
- });
 
- Router.route("/admin", {
 
-     waitOn: function() {
 
-         return Meteor.subscribe("isAdmin", Meteor.userId());
 
-     },
 
-     action: function() {
 
-         var user = Meteor.users.findOne({});
 
-         if (user !== undefined && user.profile !== undefined && user.profile.rank === "admin") {
 
-             this.render("admin");
 
-         } else {
 
-             this.redirect("/");
 
-         }
 
-     }
 
- });
 
- Router.route("/stations", {
 
-   action: function() {
 
-     var user = Meteor.users.findOne({});
 
-     if (user !== undefined && user.profile !== undefined && user.profile.rank === "admin") {
 
-         this.render("stations");
 
-     } else {
 
-         this.redirect("/");
 
-     }
 
-   }
 
- })
 
- Router.route("/vis", {
 
-     template: "visualizer"
 
- });
 
- Router.route("/:type", {
 
-     template: "room"
 
- });
 
- Router.route("/u/:user", {
 
-     template: "profile"
 
- });
 
 
  |