Skip to content

Commit

Permalink
Fix the host action
Browse files Browse the repository at this point in the history
  • Loading branch information
gkoberger committed Jul 29, 2016
1 parent 9f97b7f commit 9f29da3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/host.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
var request = require('request');

exports.swagger = true;
exports.login = true;

/*
* This will completely change 100%, and all files
* uploaded to apis.host will be removed! It's just
* a placeholder to kinda have something that works.
*/

exports.run = function(config, swagger) {
exports.run = function(config, info) {
console.log('Uploading Swagger file...');

request.post(config.host.url + '/save.php', {
'form': {
'swagger': JSON.stringify(swagger),
'swagger': JSON.stringify(info.swagger),
}
}, function(err, res, data) {
console.log(data);
Expand Down

0 comments on commit 9f29da3

Please sign in to comment.