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> <template>
<div> <div>
<h1>Register</h1> <h1>Register</h1>
...@@ -15,7 +16,6 @@ ...@@ -15,7 +16,6 @@
<script> <script>
import AuthentiacationService from '@/services/AuthenticationService' import AuthentiacationService from '@/services/AuthenticationService'
export default { export default {
data () { data () {
return { return {
email: '', email: '',
...@@ -23,9 +23,7 @@ export default { ...@@ -23,9 +23,7 @@ export default {
error: null error: null
} }
}, },
methods: { methods: {
async register () { async register () {
try { try {
await AuthentiacationService.register({ await AuthentiacationService.register({
...@@ -34,19 +32,14 @@ export default { ...@@ -34,19 +32,14 @@ export default {
}) })
} catch (error) { } catch (error) {
this.error = error.response.data.error this.error = error.response.data.error
} }
} }
} }
} }
</script> </script>
<style scoped> <style scoped>
.error{ .error{
color:red; color:red;
} }
</style> </style>
import axios from 'axios' import axios from 'axios'
export default() => { export default() => {
return axios.create({ return axios.create({
baseURL: 'http://localhost:8081/' baseURL: 'http://localhost:8081/'
}) })
......
import Api from '@/services/Api' import Api from '@/services/Api'
/* eslint-disable no-trailing-spaces */
export default{ export default{
register (credentials) {
register(credentials)
{
return Api().post('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