mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-26 05:15:59 +00:00
icons
This commit is contained in:
29
api/.eslintrc.js
Normal file
29
api/.eslintrc.js
Normal file
@@ -0,0 +1,29 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: {
|
||||
node: true,
|
||||
commonjs: true,
|
||||
es6: true,
|
||||
jquery: false,
|
||||
jest: true,
|
||||
jasmine: true,
|
||||
},
|
||||
extends: 'eslint:recommended',
|
||||
parserOptions: {
|
||||
sourceType: 'module',
|
||||
ecmaVersion: 8,
|
||||
ecmaFeatures: {
|
||||
experimentalObjectRestSpread: true,
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
indent: ['error', 2],
|
||||
quotes: ['warn', 'single'],
|
||||
semi: ['error', 'always'],
|
||||
'no-var': ['error'],
|
||||
'no-console': ['off'],
|
||||
'no-unused-vars': ['warn'],
|
||||
'no-mixed-spaces-and-tabs': ['warn'],
|
||||
indent: ["error", 2, { "SwitchCase": 1 }]
|
||||
},
|
||||
};
|
||||
@@ -10,5 +10,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node src/index.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^6.8.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
const express = require("express");
|
||||
var cors = require("cors");
|
||||
const 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");
|
||||
res.send("Hello World");
|
||||
});
|
||||
|
||||
app.listen(3000);
|
||||
|
||||
801
api/yarn.lock
801
api/yarn.lock
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user