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
Tags v1.15.0
1 merge request!1251.14
...@@ -3,7 +3,7 @@ const path = require('path'); ...@@ -3,7 +3,7 @@ const path = require('path');
require('dotenv').config({ path: path.resolve(__dirname, '../.env') }); require('dotenv').config({ path: path.resolve(__dirname, '../.env') });
axios axios
.post('http://localhost:3000/auth/login', { .post('http://localhost:3000/api/auth/login', {
email: 'admin@admin.com', email: 'admin@admin.com',
password: process.env.USER_PWD, password: process.env.USER_PWD,
}) })
...@@ -12,7 +12,7 @@ axios ...@@ -12,7 +12,7 @@ axios
headers: { Authorization: `Bearer ${res.data.accessToken}` }, headers: { Authorization: `Bearer ${res.data.accessToken}` },
}; };
axios axios
.post('http://localhost:3000/structures/resetSearchIndex', {}, config) .post('http://localhost:3000/api/structures/resetSearchIndex', {}, config)
.then((res) => { .then((res) => {
console.log(`statusCode: ${res.status}`); 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