mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-25 14:51:28 +00:00
15 lines
397 B
JavaScript
15 lines
397 B
JavaScript
'use strict';
|
|
|
|
var createClient = require('pa11y-webservice-client-node');
|
|
|
|
module.exports = createWebserviceClient;
|
|
|
|
// Create a webservice client
|
|
function createWebserviceClient (config) {
|
|
var webserviceUrl = config.webservice;
|
|
if (typeof webserviceUrl == 'object') {
|
|
webserviceUrl = 'http://' + webserviceUrl.host + ':' + webserviceUrl.port + '/';
|
|
}
|
|
return createClient(webserviceUrl);
|
|
}
|