mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 22:55:59 +00:00
refactor
This commit is contained in:
12
api/src/index.js
Normal file
12
api/src/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const express = require("express");
|
||||
var cors = require("cors");
|
||||
const app = express();
|
||||
|
||||
app.use(cors());
|
||||
|
||||
app.get("/", function(req, res) {
|
||||
// res.json({msg: 'This is CORS-enabled for all origins!'})
|
||||
res.send("Hello World");
|
||||
});
|
||||
|
||||
app.listen(3000);
|
||||
Reference in New Issue
Block a user