17 lines
369 B
TypeScript
17 lines
369 B
TypeScript
let express = require('express');
|
|
let app = express();
|
|
|
|
|
|
app.use(express.static('dist'));
|
|
// @ts-ignore
|
|
app.use(history());
|
|
|
|
app.use(express.urlencoded());
|
|
app.use(express.json());
|
|
|
|
app.get("/");
|
|
|
|
app.post('/links', require('./srv/LinksAnimes/obtenerLinks').obtenerLinks);
|
|
app.put('/links', require('./srv/LinksAnimes/modificarLink').modificarLinks);
|
|
|
|
app.listen(8080); |