Skip to content

Commit

Permalink
Comments cleanup and package.json updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kristjanmik committed Apr 28, 2013
1 parent d3e1f0a commit 17b6c57
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ endpoints/phone2.js
endpoints/phone
endpoints/sms
endpoints/closed_endpoints
endpoints/kosningar
lib/phantom_daemon.js
index.php
docs
test
kosningar.js
test
7 changes: 4 additions & 3 deletions lib/endpoints.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
var fileModule = require('file');
/**
* Loads upp all the required endpoints
*/

exports.load = function(server){
var fileModule = require('file');

//Load all endpoints in the endpoints folder
//walk is blocking on purpose because the server can't listen yet
//walk is blocking on purpose because the server is not allowed
//to listen yet
fileModule.walk('./endpoints', function(a, dirPath, dirs, files){
if(files){
files.forEach(function(file,key){
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apis.is",
"version": "0.2.0",
"version": "0.3.0",
"author": {
"name": "Kristján Ingi Mikaelsson",
"email": "[email protected]"
Expand All @@ -22,7 +22,6 @@
"scraper" : "0.0.9",
"moment": "2.0.0",
"file": "0.1.x",
"nodeunit": "0.7.x",
"xml2js": "0.2.x",
"mocha": "~1.8.2",
"cheerio": "0.10.x",
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Global npm modules
* The server module
*/
var restify = require('restify'),
server = restify.createServer();
Expand Down

0 comments on commit 17b6c57

Please sign in to comment.