Skip to content

Commit 693ce14

Browse files
committed
CMSNAV-823 - add some missing routes and json
1 parent 1b4b3d2 commit 693ce14

2 files changed

Lines changed: 129 additions & 0 deletions

File tree

sandbox/app.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,19 @@ app.all('/health-a-to-z/conditions/', handlers.healthAToZConditions)
235235
// ** Baby
236236
// ******************************************************************
237237
app.all('/baby/', handlers.babyRoot)
238+
app.all('/baby/first-aid-and-safety/', handlers.babyFirstAidAndSafety)
239+
app.all('/baby/support-and-services/', handlers.babySupportAndServices)
240+
app.all('/baby/caring-for-a-newborn/', handlers.babyCaringForANewborn)
241+
238242

239243
// ******************************************************************
240244
// ** Social care and support
241245
// ******************************************************************
242246
app.all('/social-care-and-support/', handlers.socialCareAndSupportRoot)
247+
app.all('/social-care-and-support/introduction-to-care-and-support/', handlers.socialCareAndSupportIntroductionToCareAndSupport)
248+
app.all('/social-care-and-support/money-work-and-benefits/', handlers.socialCareAndSupportMoneyWorkAndBenefits)
249+
app.all('/social-care-and-support/care-after-a-hospital-stay/', handlers.socialCareAndSupportCareAfterAHospitalStay)
250+
243251

244252
app.use((req, res, next) => {
245253
res.status(404).json(errorResourceNotFoundResponse)
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
{
2+
"@context": "http://schema.org",
3+
"@type": "MedicalWebPage",
4+
"name": "Caring for a newborn baby",
5+
"copyrightHolder": {
6+
"name": "Crown Copyright",
7+
"@type": "Organization"
8+
},
9+
"license": "https://developer.api.nhs.uk/terms",
10+
"author": {
11+
"url": "https://www.nhs.uk",
12+
"logo": "https://assets.nhs.uk/nhsuk-cms/images/nhs-attribution.width-510.png",
13+
"email": "nhswebsite.servicedesk@nhs.net",
14+
"@type": "Organization",
15+
"name": "NHS website"
16+
},
17+
"about": {
18+
"@type": "WebPage",
19+
"name": "Caring for a newborn baby",
20+
"alternateName": ""
21+
},
22+
"description": "How to look after a newborn baby in those first few days (0 to 12 weeks).",
23+
"url": "https://api.service.nhs.uk/baby/caring-for-a-newborn/",
24+
"genre": [],
25+
"keywords": "",
26+
"dateModified": "2021-11-18T16:12:28+00:00",
27+
"hasPart": [],
28+
"breadcrumb": {
29+
"@context": "http://schema.org",
30+
"@type": "BreadcrumbList",
31+
"itemListElement": [
32+
{
33+
"@type": "ListItem",
34+
"position": 0,
35+
"item": {
36+
"@id": "https://api.service.nhs.uk/baby/",
37+
"name": "Baby",
38+
"genre": []
39+
}
40+
},
41+
{
42+
"@type": "ListItem",
43+
"position": 1,
44+
"item": {
45+
"@id": "https://api.service.nhs.uk/baby/caring-for-a-newborn/",
46+
"name": "Caring for a newborn baby",
47+
"genre": []
48+
}
49+
}
50+
]
51+
},
52+
"headline": "Caring for a newborn baby",
53+
"contentSubTypes": [],
54+
"mainEntityOfPage": [
55+
{
56+
"identifier": "25",
57+
"@type": "WebPageElement",
58+
"name": "keylinks",
59+
"headline": "",
60+
"text": "",
61+
"mainEntityOfPage": [
62+
{
63+
"@type": "WebPageElement",
64+
"headline": "Helping your baby to sleep",
65+
"url": "https://api.service.nhs.uk/baby/caring-for-a-newborn/helping-your-baby-to-sleep/",
66+
"identifier": "26",
67+
"text": "",
68+
"name": "link"
69+
},
70+
{
71+
"@type": "WebPageElement",
72+
"headline": "How to change your baby's nappy",
73+
"url": "https://api.service.nhs.uk/baby/caring-for-a-newborn/how-to-change-your-babys-nappy/",
74+
"identifier": "26",
75+
"text": "",
76+
"name": "link"
77+
},
78+
{
79+
"@type": "WebPageElement",
80+
"headline": "Nappy rash",
81+
"url": "https://api.service.nhs.uk/baby/caring-for-a-newborn/nappy-rash/",
82+
"identifier": "26",
83+
"text": "",
84+
"name": "link"
85+
},
86+
{
87+
"@type": "WebPageElement",
88+
"headline": "Reduce the risk of sudden infant death syndrome (SIDS)",
89+
"url": "https://api.service.nhs.uk/baby/caring-for-a-newborn/reduce-the-risk-of-sudden-infant-death-syndrome/",
90+
"identifier": "26",
91+
"text": "",
92+
"name": "link"
93+
},
94+
{
95+
"@type": "WebPageElement",
96+
"headline": "Soothing a crying baby",
97+
"url": "https://api.service.nhs.uk/baby/caring-for-a-newborn/soothing-a-crying-baby/",
98+
"identifier": "26",
99+
"text": "",
100+
"name": "link"
101+
},
102+
{
103+
"@type": "WebPageElement",
104+
"headline": "Washing and bathing your baby",
105+
"url": "https://api.service.nhs.uk/baby/caring-for-a-newborn/washing-and-bathing-your-baby/",
106+
"identifier": "26",
107+
"text": "",
108+
"name": "link"
109+
},
110+
{
111+
"@type": "WebPageElement",
112+
"headline": "What you'll need for your baby",
113+
"url": "https://api.service.nhs.uk/baby/caring-for-a-newborn/what-you-will-need-for-your-baby/",
114+
"identifier": "26",
115+
"text": "",
116+
"name": "link"
117+
}
118+
]
119+
}
120+
]
121+
}

0 commit comments

Comments
 (0)