Skip to content

Commit

Permalink
Merge pull request #2 from aaferna/1.1.1
Browse files Browse the repository at this point in the history
1.1.1
  • Loading branch information
aaferna authored Dec 1, 2022
2 parents 0ba6afd + ef4dbe8 commit c3f07fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions core/components/status.js → components/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ const express = require('express'),

router.get('/v1/manager/status', (req, res) => {

let conn = db.sql("test", "SELECT * FROM users")
conn.then(data =>{

functions["alert"].conlog(data)

})
// * Ejemplo de Conx. a MySQL
// let conn = db.sql("test", "SELECT * FROM users")
// conn.then(data =>{
// functions["alert"].conlog(data)
// })

let response = {
date: date.toJSON(),
Expand Down
4 changes: 2 additions & 2 deletions core/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const express = require("express"),

global.functions = []

let dirFunc = require("path").join(__dirname, "../core/functions/"),
let dirFunc = require("path").join(__dirname, "../functions/"),
funcFiles = fs.readdirSync(dirFunc);
funcFiles.forEach(r =>{
functions[r.replace(".js", "")] = require(dirFunc + "/" + r);
Expand All @@ -24,7 +24,7 @@ const express = require("express"),
exsrv.use(cors({ origin: '*' }));


let dirApis = require("path").join(__dirname, "../core/components/"),
let dirApis = require("path").join(__dirname, "../components/"),
apiFiles = fs.readdirSync(dirApis);
apiFiles.forEach(r =>{
exsrv.use(require(dirApis + "/" + r));
Expand Down
File renamed without changes.

0 comments on commit c3f07fa

Please sign in to comment.