pull/10/head
sigonasr2, Sig, Sigo 3 years ago
parent fe0fef968a
commit 63c2df4e03
  1. 1
      server/app.js

@ -173,6 +173,7 @@ const ENDPOINTDATA=[
function CreateDynamicEndpoints() {
ENDPOINTDATA.map((endpoint)=>{
console.log("Created endpoints for /"+endpoint.endpoint)
app.get("/"+endpoint.endpoint,(req,res)=>{
db2.query('select * from '+endpoint.endpoint+" order by id desc")
.then((data)=>{

Loading…
Cancel
Save