2018-11-20 01:28:50 +00:00
|
|
|
let express = require('express');
|
|
|
|
let app = express();
|
|
|
|
|
|
|
|
app.use(express.static('dist'));
|
|
|
|
|
2018-11-21 17:58:16 +00:00
|
|
|
app.use(express.urlencoded());
|
|
|
|
app.use(express.json());
|
|
|
|
|
2018-11-20 01:28:50 +00:00
|
|
|
app.get("/");
|
|
|
|
|
2018-11-21 17:58:16 +00:00
|
|
|
app.post('/links', require('./srv/LinksAnimes/obtenerLinks').obtenerLinks);
|
|
|
|
app.put('/links', require('./srv/LinksAnimes/modificarLink').modificarLinks);
|
|
|
|
|
2018-11-20 01:28:50 +00:00
|
|
|
app.listen(8080);
|