3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 12:12:35 +01:00

web underscorised [#81]

This commit is contained in:
reality 2013-01-13 15:51:54 +00:00
parent cd5649a1e8
commit b512cc7ee9

View File

@ -1,4 +1,5 @@
var express = require('express'), var express = require('express'),
_ = require('underscore')._,
fs = require('fs'); fs = require('fs');
var webInterface = function(dbot) { var webInterface = function(dbot) {
@ -16,7 +17,7 @@ var webInterface = function(dbot) {
var reloadPages = function(pages) { var reloadPages = function(pages) {
for(var p in pages) { for(var p in pages) {
if( pages.hasOwnProperty(p) ) { if(_.has(pages, p)) {
var func = pages[p]; var func = pages[p];
var mod = func.module; var mod = func.module;
app.get(p, (function(req, resp) { app.get(p, (function(req, resp) {