api express
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
import { test } from '@core';
|
||||
import cors from 'cors';
|
||||
import express from 'express';
|
||||
|
||||
const b: test = {
|
||||
a: 'ui'
|
||||
}
|
||||
const app = express();
|
||||
app.use(express.json());
|
||||
app.use(cors());
|
||||
app.get('/', (req, res) => res.send('coucou\n'));
|
||||
|
||||
console.log(b);
|
||||
console.log("coucou toi");
|
||||
app.listen(8000, () => console.log('running...'));
|
||||
|
Reference in New Issue
Block a user