import express from 'express';
import cors from 'cors';

export const router = express.Router();

const {APP_WEB_BASE_PATH} = process.env;

router.get('/nav', cors(), (req, res) => {
    res.send([
        {
            "href": `${APP_WEB_BASE_PATH}`,
            "text": "Home",
            "rel": "home"
        },
        {
            "href": `${APP_WEB_BASE_PATH}/not-found`,
            "text": "404"
        }
    ]);
});


export default router;

import express from 'express';
import cors from 'cors';

export const router = express.Router();

const {APP_WEB_BASE_PATH} = process.env;

router.get('/nav', cors(), (req, res) => {
    res.send([
        {
            "href": `${APP_WEB_BASE_PATH}/`,
            "text": "Home",
            "rel": "home"
        },
        {
            "href": `${APP_WEB_BASE_PATH}/not-found`,
            "text": "404"
        }
    ]);
});


export default router;

Fix invalid mock nav data
Fix invalid mock nav data

The path to home should be "/" but ended up
just being ""
