Skip to content

Commit

Permalink
api functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanmele committed Jan 31, 2024
1 parent 2758d77 commit bf86bf6
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/api/compas.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
import axios from "axios";

const HOST = "http://127.0.0.1:8000/";
const HOST = "http://localhost:8000";

export default {
async fetchKeywords() {
let response = await axios.get(HOST + "api/brg/meta/keyword/");
async ping() {
let response = await axios.get(HOST + "/ping");
return response.data;
},

async boxToSubdividedMesh(boxdata) {
let response = await axios.post(HOST + "/box_to_subdivided_mesh", {
xsize: boxdata.xsize,
ysize: boxdata.ysize,
zsize: boxdata.zsize,
});
return response.data;
},
};

0 comments on commit bf86bf6

Please sign in to comment.