pseudosubs-v1/app.ts

17 lines
369 B
TypeScript
Raw Normal View History

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);