Skip to content
Snippets Groups Projects

frontend: Spieleseite weiterentwickelt

Merged Thorben Rolf requested to merge thorben into master
3 files
+ 48
1
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 33
0
@@ -10,6 +10,39 @@ export default {
components: {
NavSwitcher,
},
created() {
this.getRibbons();
},
methods: {
async getRibbonsBrickedDemo() {
await this.$axios
.get("/api/ribbons?from=2&to=1")
.then((res) => {
console.log(res.data);
})
.catch((e) => {
if (e.response) {
console.log(
`The API returned with an error status code: ${e.response.status}`
);
}
});
},
async getRibbons() {
await this.$axios
.get("/api/ribbons")
.then((res) => {
console.log(res.data);
})
.catch((e) => {
if (e.response) {
console.log(
`The API returned with an error status code: ${e.response.status}`
);
}
});
},
},
};
</script>
Loading