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

created Api.js and authnticationservices.js

parent 4a95669b
Branches
No related tags found
No related merge requests found
......@@ -631,6 +631,14 @@
"integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==",
"dev": true
},
"axios": {
"version": "0.21.1",
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.1.tgz",
"integrity": "sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==",
"requires": {
"follow-redirects": "^1.10.0"
}
},
"babel-code-frame": {
"version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz",
......@@ -5533,8 +5541,7 @@
"follow-redirects": {
"version": "1.13.1",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.1.tgz",
"integrity": "sha512-SSG5xmZh1mkPGyKzjZP8zLjltIfpW32Y5QpdNJyjcfGxK3qo3NDDkZOZSFiGn1A6SclQxY9GzEwAHQ3dmYRWpg==",
"dev": true
"integrity": "sha512-SSG5xmZh1mkPGyKzjZP8zLjltIfpW32Y5QpdNJyjcfGxK3qo3NDDkZOZSFiGn1A6SclQxY9GzEwAHQ3dmYRWpg=="
},
"for-in": {
"version": "1.0.2",
......
......@@ -14,6 +14,7 @@
"build": "node build/build.js"
},
"dependencies": {
"axios": "^0.21.1",
"vue": "^2.5.2",
"vue-router": "^3.0.1"
},
......
import axios from 'axios'
export default()=>{
return axios.create({
baseURL:'http://localhost:8081/'
})
}
import Api from '@/services/Api'
export default{
register(credentials)
{
return Api().post('register' , credentials)
}
}
\ No newline at end of file
......@@ -4,7 +4,7 @@ const cors = require('cors')
const morgan = require('morgan')
const app = express()
app.use(morgan('combine'))
app.use(morgan('combined'))
app.use(bodyParser.json())
app.use(cors())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment