Skip to content
Browse files

started adding assassinPanel Controller

  • Loading branch information...
1 parent 38f376a commit b26bd03b7007b25b9fca81c303da079bb6ca575a @tsjamm tsjamm committed Mar 9, 2013
Showing with 24 additions and 0 deletions.
  1. +14 −0 controllers/assassinPanel.js
  2. +2 −0 system/controller.js
  3. +8 −0 system/router.js
View
14 controllers/assassinPanel.js
@@ -0,0 +1,14 @@
+/* assassinPanel.js
+ ***** Part of AssassinJS *****
+ - (c)2013 Adithya and Sai Teja under MIT (Open Source) License
+
+ This is a default controller that invokes the assassinPanel UI
+
+*/
+
+function invoke()
+{
+
+}
+
+exports.invoke = invoke;
View
2 system/controller.js
@@ -15,6 +15,7 @@ extensions['users'] = require('../controllers/users');
extensions['fileserver'] = require('../controllers/fileserver');
extensions['respond'] = require('../controllers/respond');
extensions['proxy'] = require('../controllers/proxy');
+extensions['assassinPanel'] = require('../controllers/assassinPanel');
function handleRequest(routesObj,request,response)
{
@@ -61,5 +62,6 @@ controllers['dbfunctions'] = extensions['dbfunctions'].forwardRequest;
controllers['common'] = extensions['common'].forwardRequest;
controllers['users'] = extensions['users'].forwardRequest;
controllers['proxy'] = extensions['proxy'].forwardRequest;
+controllers['assassinPanel'] = extensions['assassinPanel'].invoke;
exports.handleRequest = handleRequest;
View
8 system/router.js
@@ -10,10 +10,12 @@ var url = require('url');
var fs = require('fs');
var controller = require('./controller');
var logger = require('./logger');
+var dbconnect = require('./dbconnect');
//Reading Routes File
var routes={};
+// Obsolete with database storage
ReadRoutesFile();//Ensures first time execution
function ReadRoutesFile()
{
@@ -41,6 +43,12 @@ function ReadRoutesFile()
}
}
+
+function ReadFromDB()
+{
+
+}
+
//Actual Routing Function
function route(request,response)
{

0 comments on commit b26bd03

Please sign in to comment.
Something went wrong with that request. Please try again.