Skip to content
Snippets Groups Projects
Commit 404a6259 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: update index create root url

parent d7f3ce27
No related branches found
No related tags found
1 merge request!1251.14
......@@ -3,7 +3,7 @@ const path = require('path');
require('dotenv').config({ path: path.resolve(__dirname, '../.env') });
axios
.post('http://localhost:3000/auth/login', {
.post('http://localhost:3000/api/auth/login', {
email: 'admin@admin.com',
password: process.env.USER_PWD,
})
......@@ -12,7 +12,7 @@ axios
headers: { Authorization: `Bearer ${res.data.accessToken}` },
};
axios
.post('http://localhost:3000/structures/resetSearchIndex', {}, config)
.post('http://localhost:3000/api/structures/resetSearchIndex', {}, config)
.then((res) => {
console.log(`statusCode: ${res.status}`);
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment