2018-11-20 01:28:50 +00:00
|
|
|
import express from 'express';
|
|
|
|
|
|
|
|
export default (app:any) => {
|
2018-11-20 21:52:25 +00:00
|
|
|
|
|
|
|
app.use(express.json());
|
|
|
|
app.use(express.urlencoded());
|
2018-11-20 01:28:50 +00:00
|
|
|
|
|
|
|
app.get("/");
|
2018-11-20 21:52:25 +00:00
|
|
|
|
|
|
|
app.post('/links', require('./LinksAnimes/obtenerLinks').obtenerLinks);
|
2018-11-21 17:58:16 +00:00
|
|
|
app.put('/links', require('./LinksAnimes/modificarLink').modificarLinks);
|
2018-11-20 21:52:25 +00:00
|
|
|
|
2018-11-22 16:46:11 +00:00
|
|
|
app.put('/a/', require('./Admin/crearAnime').crearAnime);
|
|
|
|
app.get('/a/', require('./Admin/obtenerTodosAnimes').obtenerTodosAnimes);
|
|
|
|
|
2018-12-13 01:10:51 +00:00
|
|
|
app.get('/op/:id', require('./Admin/OP/obtenerOPs').obtenerOPs);
|
|
|
|
app.post('/op/', require('./Admin/OP/nuevoOP').nuevoOP);
|
|
|
|
|
2018-12-20 21:30:16 +00:00
|
|
|
app.get('/ed/:anime_ID', require('./Admin/ED/obtenerEDs').obtenerEDs);
|
|
|
|
app.post('/ed/', require('./Admin/ED/nuevoED').nuevoED);
|
|
|
|
|
2018-12-16 03:49:59 +00:00
|
|
|
app.get('/eps/variantes/:anime_ID', require('./Admin/Eps/obtenerVariantes').obtenerVariantes);
|
|
|
|
app.get('/eps/links/:opcion_ID', require('./Admin/Eps/obtenerLinks').obtenerLinks);
|
|
|
|
app.post('/eps/links/', require('./Admin/Eps/crearLink').crearLink);
|
|
|
|
|
2018-11-20 01:28:50 +00:00
|
|
|
}
|