DB
This commit is contained in:
@ -1,14 +1,12 @@
|
||||
import axios from "axios";
|
||||
import { config } from "tests/config";
|
||||
|
||||
export default async (name: string, sourcePath: string) => {
|
||||
try {
|
||||
const response = await axios.post(
|
||||
"http://localhost:3000/query/module/create",
|
||||
{
|
||||
name,
|
||||
sourcePath,
|
||||
}
|
||||
);
|
||||
const response = await axios.post(`${config.url}/query/module/create`, {
|
||||
name,
|
||||
sourcePath,
|
||||
});
|
||||
|
||||
return response;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user