messages
This commit is contained in:
parent
fe0fef968a
commit
63c2df4e03
@ -173,6 +173,7 @@ const ENDPOINTDATA=[
|
|||||||
|
|
||||||
function CreateDynamicEndpoints() {
|
function CreateDynamicEndpoints() {
|
||||||
ENDPOINTDATA.map((endpoint)=>{
|
ENDPOINTDATA.map((endpoint)=>{
|
||||||
|
console.log("Created endpoints for /"+endpoint.endpoint)
|
||||||
app.get("/"+endpoint.endpoint,(req,res)=>{
|
app.get("/"+endpoint.endpoint,(req,res)=>{
|
||||||
db2.query('select * from '+endpoint.endpoint+" order by id desc")
|
db2.query('select * from '+endpoint.endpoint+" order by id desc")
|
||||||
.then((data)=>{
|
.then((data)=>{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user