Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
alandoherty committed Feb 20, 2018
2 parents ddbdbd6 + 1babf1a commit eeee1a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var app = express();

var containers = {};

app.get("/create", function(req, res) {
app.post("/create", function(req, res) {
client.launch(req.query.name, function(err, container) {
if (err) res.json({success: false, message: err.getMessage()});
else {
Expand All @@ -48,7 +48,7 @@ app.get("/create", function(req, res) {
});
});

app.get("/run", function(req, res) {
app.post("/run", function(req, res) {
if (!containers.hasOwnProperty(req.query.name)) {
res.json({success: false, message: "Container does not exist"});
return;
Expand Down

0 comments on commit eeee1a2

Please sign in to comment.