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' },
|
2024-11-26 14:38:15 -08:00
|
|
|
{ label: 'Guidance', path: '/guides/using-notify/guidance' },
|
2024-09-23 13:07:24 -04:00
|
|
|
{ label: 'Features', path: '/features' },
|
2024-09-30 09:58:44 -04:00
|
|
|
{ label: 'Roadmap', path: '/features/roadmap' },
|
2024-09-23 13:07:24 -04:00
|
|
|
{ label: 'Security', path: '/features/security' },
|
|
|
|
|
{ label: 'Support', path: '/support' },
|
2024-11-04 11:44:45 -05:00
|
|
|
{ label: 'Best Practices', path: '/guides/best-practices' },
|
2024-11-25 18:15:34 -08:00
|
|
|
{ label: 'Clear Goals', path: '/guides/clear-goals' },
|
2024-11-04 11:44:45 -05:00
|
|
|
{
|
|
|
|
|
label: 'Rules And Regulations',
|
2024-11-25 18:15:34 -08:00
|
|
|
path: '/guides/rules-and-regulations',
|
2024-11-04 11:44:45 -05:00
|
|
|
},
|
2024-11-25 18:15:34 -08:00
|
|
|
{ label: 'Establish Trust', path: '/guides/establish-trust' },
|
2024-11-04 11:44:45 -05:00
|
|
|
{
|
|
|
|
|
label: 'Write For Action',
|
2024-11-25 18:15:34 -08:00
|
|
|
path: '/guides/write-for-action',
|
2024-11-04 11:44:45 -05:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'Multiple Languages',
|
2024-11-25 18:15:34 -08:00
|
|
|
path: '/guides/multiple-languages',
|
2024-11-04 11:44:45 -05:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'Benchmark Performance',
|
2024-11-25 18:15:34 -08:00
|
|
|
path: '/guides/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',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'Join Notify',
|
|
|
|
|
path: '/join-notify',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'Contact',
|
|
|
|
|
path: '/contact',
|
|
|
|
|
},
|
|
|
|
|
|
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),
|
|
|
|
|
};
|