mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 19:52:36 +01:00
web underscorised [#81]
This commit is contained in:
parent
cd5649a1e8
commit
b512cc7ee9
@ -1,4 +1,5 @@
|
||||
var express = require('express'),
|
||||
_ = require('underscore')._,
|
||||
fs = require('fs');
|
||||
|
||||
var webInterface = function(dbot) {
|
||||
@ -16,7 +17,7 @@ var webInterface = function(dbot) {
|
||||
|
||||
var reloadPages = function(pages) {
|
||||
for(var p in pages) {
|
||||
if( pages.hasOwnProperty(p) ) {
|
||||
if(_.has(pages, p)) {
|
||||
var func = pages[p];
|
||||
var mod = func.module;
|
||||
app.get(p, (function(req, resp) {
|
||||
|
Loading…
Reference in New Issue
Block a user