2024-09-23 13:07:24 -04:00
|
|
|
const baseUrl = 'http://localhost:6012';
|
2024-09-18 13:59:16 -04:00
|
|
|
|
|
|
|
|
// List of routes with paths and labels
|
|
|
|
|
const sublinks = [
|
2024-09-23 13:07:24 -04:00
|
|
|
{ label: 'Homepage', path: '/' },
|
|
|
|
|
{ label: 'Add Service', path: '/add-service' },
|
|
|
|
|
{ label: 'Get Started', path: '/using-notify/get-started' },
|
|
|
|
|
{ label: 'Trial Mode', path: '/using-notify/trial-mode' },
|
|
|
|
|
{ label: 'Pricing', path: '/using-notify/pricing' },
|
|
|
|
|
{ label: 'Delivery Status', path: '/using-notify/delivery-status' },
|
2025-01-22 10:41:29 -08:00
|
|
|
{ label: 'How To', path: '/using-notify/how-to' },
|
2024-09-23 13:07:24 -04:00
|
|
|
{ label: 'Support', path: '/support' },
|
2025-01-13 14:47:41 -05:00
|
|
|
{ label: 'Best Practices', path: '/using-notify/best-practices' },
|
|
|
|
|
{ label: 'Clear Goals', path: '/using-notify/best-practices/clear-goals' },
|
2024-11-04 11:44:45 -05:00
|
|
|
{
|
|
|
|
|
label: 'Rules And Regulations',
|
2025-01-13 14:47:41 -05:00
|
|
|
path: '/using-notify/best-practices//rules-and-regulations',
|
2024-11-04 11:44:45 -05:00
|
|
|
},
|
2025-01-13 14:47:41 -05:00
|
|
|
{ label: 'Establish Trust', path: '/using-notify/best-practices//establish-trust' },
|
2024-11-04 11:44:45 -05:00
|
|
|
{
|
|
|
|
|
label: 'Write For Action',
|
2025-01-13 14:47:41 -05:00
|
|
|
path: '/using-notify/best-practices//write-for-action',
|
2024-11-04 11:44:45 -05:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'Multiple Languages',
|
2025-01-13 14:47:41 -05:00
|
|
|
path: '/using-notify/best-practices//multiple-languages',
|
2024-11-04 11:44:45 -05:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'Benchmark Performance',
|
2025-01-13 14:47:41 -05:00
|
|
|
path: '/using-notify/best-practices//benchmark-performance',
|
2024-11-04 11:44:45 -05:00
|
|
|
},
|
2025-01-12 17:42:15 -05:00
|
|
|
{
|
|
|
|
|
label: 'About',
|
|
|
|
|
path: '/about',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'Why Text Messaging',
|
|
|
|
|
path: '/about/why-text-messaging',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'Security',
|
|
|
|
|
path: '/about/security',
|
|
|
|
|
},
|
|
|
|
|
{
|
2025-03-13 15:43:21 -07:00
|
|
|
label: 'Notify.gov Service Ending',
|
|
|
|
|
path: '/notify-service-ending',
|
2025-01-12 17:42:15 -05:00
|
|
|
},
|
|
|
|
|
|
2024-09-18 13:59:16 -04:00
|
|
|
// Add more links here as needed
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const createFullUrl = (base, path) => `${base}${path}`;
|
|
|
|
|
|
|
|
|
|
// Build url using base and path
|
|
|
|
|
const constructUrls = (base, sublinks) =>
|
|
|
|
|
sublinks.reduce((acc, { label, path }) => {
|
|
|
|
|
return { ...acc, [label]: createFullUrl(base, path) };
|
|
|
|
|
}, {});
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
2024-09-23 13:07:24 -04:00
|
|
|
baseUrl,
|
2024-09-18 13:59:16 -04:00
|
|
|
urls: constructUrls(baseUrl, sublinks),
|
|
|
|
|
};
|