Skip to content

Commit

Permalink
added cors
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmosgenius committed Sep 11, 2014
1 parent 31b0a49 commit bf3d47a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
"use strict";

var express = require("express"),
cors = require("cors"),
app = express();

var webapps = require("./routes/webapps"),
deploy = require("./routes/deploy");



app.use(cors());
app.use("/webapps",webapps);
app.use("/deploy",deploy);

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webhooked",
"version": "0.0.2",
"version": "0.1.0",
"description": "A WebHook Client for github",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -34,6 +34,7 @@
},
"dependencies": {
"config": "*",
"cors": "2.4.x",
"express": "4.x",
"jsonparser": "0.2.x",
"mongoose": "3.8.x",
Expand Down

0 comments on commit bf3d47a

Please sign in to comment.