.
This commit is contained in:
parent
f010e0de88
commit
00dbd54025
@ -91,7 +91,7 @@ routes.get('/events/yesterday',
|
||||
);
|
||||
|
||||
|
||||
routes.get('/events/today',
|
||||
/*routes.get('/events/today',
|
||||
isLoggedUser,
|
||||
FieldMiddleware.middleware({
|
||||
invalidFields: generalInvalidFields
|
||||
@ -101,7 +101,7 @@ routes.get('/events/today',
|
||||
eventController.find({
|
||||
scopes: ['defaultScope', 'today', 'includeVenue', 'includeMultimedias', 'includeDetails'],
|
||||
}),
|
||||
);
|
||||
);*/
|
||||
|
||||
|
||||
/*routes.get('/events/today',
|
||||
@ -126,7 +126,7 @@ routes.get('/events/today',
|
||||
);*/
|
||||
|
||||
|
||||
/*
|
||||
|
||||
routes.get('/events/today', (req, res, next) => {
|
||||
const events = [{
|
||||
"stateCode": "current_event",
|
||||
@ -344,7 +344,7 @@ routes.get('/events/today', (req, res, next) => {
|
||||
});
|
||||
res.status(200).send(events);
|
||||
});
|
||||
*/
|
||||
|
||||
|
||||
routes.get('/events/tomorrow',
|
||||
isLoggedUser,
|
||||
@ -370,6 +370,224 @@ routes.get('/events/current',
|
||||
}),
|
||||
);
|
||||
|
||||
routes.get('/events/5f772798-5616-4663-a661-b6484dd11bd7', (req, res, next) => {
|
||||
const event = {
|
||||
"stateCode": "current_event",
|
||||
"stateText": "Congreso en curso",
|
||||
"id": "5f772798-5616-4663-a661-b6484dd11bd7",
|
||||
"name": "Sevilla 2019",
|
||||
"description": "Os rogamos puntualidad. Una vez de comienzo el congreso el acceso no será posible hasta la siguiente ponencia o descanso.",
|
||||
"campaign_text": "Campaña \"Tu kilo también importa\". ¡Únete a nuestra campaña de recogida de alimentos! Este año 2019, en todos nuestros congresos, reuniremos alimentos no perecederos, para personas sin recursos. ¡No olvides traer tu kilo solidario el día del congreso!.\n\nEn Sevilla colaboramos con el Banco de Alimentos de Sevilla, necesitan alimentos no perecederos infantiles. Necesitan vuestra ayuda! GRACIAS!",
|
||||
"init_date": "2019-09-27T07:00:00.000Z",
|
||||
"end_date": "2019-09-27T19:30:00.000Z",
|
||||
"init_available_date": "2019-09-03T07:30:00.000Z",
|
||||
"end_available_date": "2019-10-03T22:00:00.000Z",
|
||||
"gmt": 2,
|
||||
"sold_out": false,
|
||||
"allow_overflow": true,
|
||||
"typeId": "0",
|
||||
"venueId": "ec4149e0-1958-44c0-9cfc-e64779574c82",
|
||||
"locationId": "df97179f-c8de-11e9-b18d-000c295f0f58",
|
||||
"url_streaming": "https://live.tsa.es/player/frames/lqdvi.html",
|
||||
"url_poll": null,
|
||||
"url_registration": null,
|
||||
"type": {
|
||||
"name": "conference",
|
||||
"title": "Congreso LQDVI"
|
||||
},
|
||||
"location": {
|
||||
"country": "España",
|
||||
"city": "Sevilla"
|
||||
},
|
||||
"venue": {
|
||||
"image_url": "https://cdnapp2.loquedeverdadimporta.org/cities//Sevilla.jpg",
|
||||
"id": "ec4149e0-1958-44c0-9cfc-e64779574c82",
|
||||
"name": "FIBES II, Palacio de Exposiciones y Congresos",
|
||||
"description": null,
|
||||
"address": "Avda Alcalde Luis Uruñuela 1",
|
||||
"city": "Sevilla",
|
||||
"country": "España",
|
||||
"state": null,
|
||||
"postal_code": "41000",
|
||||
"accessibility": null,
|
||||
"gmt": 2,
|
||||
"latitude": null,
|
||||
"longitude": null
|
||||
},
|
||||
"multimedias": [],
|
||||
"details": [],
|
||||
"speakers": [
|
||||
{
|
||||
"order": 648,
|
||||
"id": "72c7ca02-5559-4ca6-9505-4ead0e34e06c",
|
||||
"name": "Sara Andrés",
|
||||
"description": "Sara Andrés perdió sus piernas en 2011 tras un accidente pero eso nunca le impidió empezar una nueva etapa como atleta y campeona Paralímpica Mundial.",
|
||||
"short_description": null,
|
||||
"slogan": null,
|
||||
"state": "publish",
|
||||
"typeId": "1",
|
||||
"featured": false,
|
||||
"createdAt": "2019-07-26T11:32:13.000Z",
|
||||
"updatedAt": "2019-07-26T11:32:13.000Z",
|
||||
"userId": "0939bb2a-d33d-4290-ac81-fc9faa1c015e",
|
||||
"multimedias": [
|
||||
{
|
||||
"id": "d3f5bc98-af88-11e9-aa90-000c295f0f58",
|
||||
"multimediafileId": "d3f5bc98-af88-11e9-aa90-000c295f0f58",
|
||||
"entityId": "72c7ca02-5559-4ca6-9505-4ead0e34e06c",
|
||||
"entityName": "speaker",
|
||||
"type": "avatar",
|
||||
"name": "Sara Andrés - picture",
|
||||
"description": "72c7ca02-5559-4ca6-9505-4ead0e34e06c",
|
||||
"class": "picture",
|
||||
"provider": "cdn",
|
||||
"code": null,
|
||||
"url": "https://cdnapp2.loquedeverdadimporta.org/speakers/sara-andres-3.jpg"
|
||||
},
|
||||
{
|
||||
"id": "6c3710ea-efa3-45ce-aa51-e5e73ef22154",
|
||||
"multimediafileId": "6c3710ea-efa3-45ce-aa51-e5e73ef22154",
|
||||
"entityId": "72c7ca02-5559-4ca6-9505-4ead0e34e06c",
|
||||
"entityName": "speaker",
|
||||
"type": "resume",
|
||||
"name": "Sara Andrés - Congreso de valores LQDVI Madrid 2018",
|
||||
"description": null,
|
||||
"class": "video",
|
||||
"provider": "vimeo",
|
||||
"code": "322771046",
|
||||
"url": "https://player.vimeo.com/video/322771046"
|
||||
}
|
||||
],
|
||||
"typename": "ponente",
|
||||
"rrss": {
|
||||
"twitter": "https://twitter.com/SaraAndresB",
|
||||
"facebook": "https://www.facebook.com/www.saraandres.es/",
|
||||
"youtube": null,
|
||||
"linkedin": null,
|
||||
"instagram": null,
|
||||
"web": "http://www.saraandres.es/"
|
||||
},
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"order": 800,
|
||||
"id": "aaf594e9-3798-4ea2-b5a0-9e268277afb0",
|
||||
"name": "Antonio Pampliega",
|
||||
"description": "Antonio Pampliega, es un periodista especializado en zonas de conflicto que fue secuestrado por el grupo terrorista Al Qaeda.",
|
||||
"short_description": "Antonio Pampliega, es un periodista especializado en zonas de conflicto que fue secuestrado por el grupo terrorista Al Qaeda.",
|
||||
"slogan": null,
|
||||
"state": "publish",
|
||||
"typeId": "1",
|
||||
"featured": false,
|
||||
"createdAt": "2019-07-26T11:32:13.000Z",
|
||||
"updatedAt": "2019-07-26T11:32:13.000Z",
|
||||
"userId": "0939bb2a-d33d-4290-ac81-fc9faa1c015e",
|
||||
"multimedias": [
|
||||
{
|
||||
"id": "d3f61c46-af88-11e9-aa90-000c295f0f58",
|
||||
"multimediafileId": "d3f61c46-af88-11e9-aa90-000c295f0f58",
|
||||
"entityId": "aaf594e9-3798-4ea2-b5a0-9e268277afb0",
|
||||
"entityName": "speaker",
|
||||
"type": "avatar",
|
||||
"name": "Antonio Pampliega - picture",
|
||||
"description": "aaf594e9-3798-4ea2-b5a0-9e268277afb0",
|
||||
"class": "picture",
|
||||
"provider": "cdn",
|
||||
"code": null,
|
||||
"url": "https://cdnapp2.loquedeverdadimporta.org/speakers/antonio-pampliega-3.jpg"
|
||||
},
|
||||
{
|
||||
"id": "d8d7359f-b202-4ffe-8f9c-816dd9a6f510",
|
||||
"multimediafileId": "d8d7359f-b202-4ffe-8f9c-816dd9a6f510",
|
||||
"entityId": "aaf594e9-3798-4ea2-b5a0-9e268277afb0",
|
||||
"entityName": "speaker",
|
||||
"type": "resume",
|
||||
"name": "Antonio Pampliega - Congreso LQDVI Mallorca 2018",
|
||||
"description": null,
|
||||
"class": "video",
|
||||
"provider": "vimeo",
|
||||
"code": "323926045",
|
||||
"url": "https://player.vimeo.com/video/323926045"
|
||||
}
|
||||
],
|
||||
"typename": "ponente",
|
||||
"rrss": {
|
||||
"twitter": "https://twitter.com/apampliega",
|
||||
"facebook": null,
|
||||
"youtube": null,
|
||||
"linkedin": null,
|
||||
"instagram": "https://www.instagram.com/apampliega/",
|
||||
"web": null
|
||||
},
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"order": 778,
|
||||
"id": "c65617a7-7756-4ca1-bcc7-54a19918c4eb",
|
||||
"name": "Antonio Espinosa",
|
||||
"description": "Antonio es CEO de AUARA, empresa social cuyo fin es financiar proyectos de acceso a agua potable.",
|
||||
"short_description": "Antonio es CEO de AUARA, empresa social cuyo fin es financiar proyectos de acceso a agua potable.",
|
||||
"slogan": null,
|
||||
"state": "publish",
|
||||
"typeId": "1",
|
||||
"featured": false,
|
||||
"createdAt": "2019-07-26T11:32:13.000Z",
|
||||
"updatedAt": "2019-07-26T11:32:13.000Z",
|
||||
"userId": "0939bb2a-d33d-4290-ac81-fc9faa1c015e",
|
||||
"multimedias": [
|
||||
{
|
||||
"id": "d3f62532-af88-11e9-aa90-000c295f0f58",
|
||||
"multimediafileId": "d3f62532-af88-11e9-aa90-000c295f0f58",
|
||||
"entityId": "c65617a7-7756-4ca1-bcc7-54a19918c4eb",
|
||||
"entityName": "speaker",
|
||||
"type": "avatar",
|
||||
"name": "Antonio Espinosa - picture",
|
||||
"description": "c65617a7-7756-4ca1-bcc7-54a19918c4eb",
|
||||
"class": "picture",
|
||||
"provider": "cdn",
|
||||
"code": null,
|
||||
"url": "https://cdnapp2.loquedeverdadimporta.org/speakers/a-espinosa-3.jpg"
|
||||
}
|
||||
],
|
||||
"typename": "ponente",
|
||||
"rrss": {
|
||||
"twitter": null,
|
||||
"facebook": null,
|
||||
"youtube": null,
|
||||
"linkedin": "https://es.linkedin.com/in/aedlm",
|
||||
"instagram": null,
|
||||
"web": null
|
||||
},
|
||||
"comments": []
|
||||
}
|
||||
],
|
||||
"partners": [
|
||||
{
|
||||
"name": "CantabriaLabs",
|
||||
"image": "https://cdnapp2.loquedeverdadimporta.org/partners/cantabria_labs/banner_live.jpg",
|
||||
"width": "1080",
|
||||
"height": "540",
|
||||
"link": "https://es.surveymonkey.com/r/habitos-fotoproteccion-2019"
|
||||
},
|
||||
{
|
||||
"name": "Gonvarri",
|
||||
"image": "https://cdnapp2.loquedeverdadimporta.org/partners/gonvarri/banner_live.jpg",
|
||||
"width": "1080",
|
||||
"height": "540",
|
||||
"link": "http://www.emotionaldriving.com/mensajes/"
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
res.set({
|
||||
'x-total-count': 1,
|
||||
'Pagination-Count': 1,
|
||||
'Pagination-Page': 1,
|
||||
'Pagination-Limit': 10,
|
||||
});
|
||||
res.status(200).send(event);
|
||||
});
|
||||
|
||||
routes.get('/events/:id',
|
||||
isLoggedUser,
|
||||
FieldMiddleware.middleware({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user