mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 23:14:58 +00:00
22 lines
609 B
JavaScript
22 lines
609 B
JavaScript
////////////////////////////////////////////////////////////////////////
|
|
// Directus API
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
var CONFIG = require("lib/config");
|
|
var HTTP = require("lib/http");
|
|
|
|
exports.authenticate = function() {
|
|
var apiUrl = CONFIG.readConfig("/Config/ApiUrl").first().text;
|
|
/*
|
|
var http = HTTP.post(apiUrl + "/netsolid/auth/authenticate", JSON.stringify({
|
|
"email": "admin@example.org",
|
|
"password": "1234"
|
|
}), {
|
|
"Content-Type": "application/json"
|
|
});
|
|
|
|
console.log(http.responseBody);
|
|
return http;
|
|
*/
|
|
};
|