Commit 0ee67a41 authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion
Browse files

fix backend urls

parent 06936bc6
......@@ -59,7 +59,7 @@ export default {
},
methods: {
fetchGenes() {
fetch('/catalog/api/genes/', {
fetch('/api/catalog/v1/genes/', {
method: 'GET',
headers: {
Accept: 'application/json',
......@@ -68,7 +68,7 @@ export default {
.then((response) => {
if (response.ok) {
response.json().then((json) => {
this.genes = json.data;
this.genes = json.results;
this.count = json.count;
});
}
......
......@@ -42,7 +42,7 @@ export default {
},
methods: {
fetchGeneLength(geneLengthWindowSize) {
fetch('/catalog/api/gene_length?window_size='.concat(geneLengthWindowSize), {
fetch('/api/catalog/gene_length?window_size='.concat(geneLengthWindowSize), {
method: 'GET',
headers: {
Accept: 'application/json',
......
Supports Markdown
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