Skip to content
Snippets Groups Projects
Commit f5b847d7 authored by Andrey Azov's avatar Andrey Azov
Browse files

Fetch images from the /api namespace

parent 7abf1ba6
No related branches found
No related tags found
No related merge requests found
Pipeline #129366 passed with stages
in 2 minutes and 21 seconds
......@@ -18,7 +18,7 @@ const imageVisitor = (filePath: string) => (node: Node) => {
.split('/')
.slice(0, -1)
.join('/');
const destPath = `/images/${markdownDirectory}/${node.url}`;
const destPath = `/api/images/${markdownDirectory}/${node.url}`;
const { host } = config;
node.url = `${host}${destPath}`;
......
......@@ -13,7 +13,7 @@ import { getMenu } from '../controllers/menusController';
import { search } from '../controllers/searchController';
import { healthcheck } from '../controllers/healthcheckController';
app.use('/images', express.static(config.buildImagesPath));
app.use('/api/images', express.static(config.buildImagesPath));
app.use('/api/article', getArticle);
app.use('/api/collection', getCollection);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment