Skip to content
Snippets Groups Projects
Commit 276b54a4 authored by V S Tharunika's avatar V S Tharunika
Browse files

after correcting all the indentation errors

parent afb0646b
Branches
No related tags found
No related merge requests found
/* eslint-disable */
<template>
<div>
<h1>Register</h1>
......@@ -15,7 +16,6 @@
<script>
import AuthentiacationService from '@/services/AuthenticationService'
export default {
data () {
return {
email: '',
......@@ -23,9 +23,7 @@ export default {
error: null
}
},
methods: {
async register () {
try {
await AuthentiacationService.register({
......@@ -34,19 +32,14 @@ export default {
})
} catch (error) {
this.error = error.response.data.error
}
}
}
}
</script>
<style scoped>
.error{
color:red;
}
</style>
import axios from 'axios'
export default() => {
return axios.create({
baseURL: 'http://localhost:8081/'
})
......
import Api from '@/services/Api'
/* eslint-disable no-trailing-spaces */
export default{
register(credentials)
{
register (credentials) {
return Api().post('register', credentials)
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment