'use strict';
var $ = require('jquery');

//https://pgp-logs-app.herokuapp.com/api
//http://localhost:8085/api
var client = new $.RestClient('https://pgp-logs-app.herokuapp.com/api', {
  verbs: {
    'post': 'POST',
    'read': 'GET',
    'put': 'PUT',
    'del': 'DELETE'
  }
});

client.add('authentication', { isSingle: true });
client.authentication.add('authenticate', { isSingle: true });
client.add('logmessages');
client.logmessages.add('fields', { isSingle: true });
client.add('applications');

module.exports = {
  client: client,
  authentication: client.authentication,
  applications: client.applications,
  logMessages: client.logmessages
};

'use strict';
var $ = require('jquery');

//https://pgp-logs-app.herokuapp.com/api
//http://localhost:8085/api
var client = new $.RestClient('https://pgp-logs-app.herokuapp.com/api/', {
  verbs: {
    'post': 'POST',
    'read': 'GET',
    'put': 'PUT',
    'del': 'DELETE'
  }
});

client.add('authentication', { isSingle: true });
client.authentication.add('authenticate', { isSingle: true });
client.add('logmessages');
client.logmessages.add('fields', { isSingle: true });
client.add('applications');

module.exports = {
  client: client,
  authentication: client.authentication,
  applications: client.applications,
  logMessages: client.logmessages
};

Add extra bar in url
Add extra bar in url