Rename endpoints
This commit is contained in:
parent
acc6435f61
commit
fe9c6918fc
@ -3,7 +3,7 @@ import apiClient from '@/api'
|
|||||||
export default {
|
export default {
|
||||||
async login({username, password}) {
|
async login({username, password}) {
|
||||||
try {
|
try {
|
||||||
const {data} = await apiClient.post('/signin', {
|
const {data} = await apiClient.post('/user/signin', {
|
||||||
username,
|
username,
|
||||||
password
|
password
|
||||||
})
|
})
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import apiClient from '@/api'
|
|||||||
export default {
|
export default {
|
||||||
async register({username, email, password}) {
|
async register({username, email, password}) {
|
||||||
try {
|
try {
|
||||||
await apiClient.post('/signup', {
|
await apiClient.post('/user', {
|
||||||
username,
|
username,
|
||||||
email,
|
email,
|
||||||
password
|
password
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user