css and some nav

This commit is contained in:
ntr committed 2022-08-10 23:47:33 +10:00
1 parent a8e5e5d7cd
commit 9a42c290ae
10 files changed
+273 -195

No files matched your search

+7 -6
View File
@@ -6,22 +6,22 @@ const api = axios.create({
});
const actions = {
getBundles: async () => {
getBundles: async function getBundles() {
const { data: bundles } = await api.get('/bundles');
return bundles;
},
getUserOffers: async (state, userId) => {
getUserOffers: async function getUserOffers(state, userId) {
const { data: offers } = await api.get(`/user/${userId}/offers`);
return offers;
},
getOffers: async (userId) => {
getOffers: async function getOffers(userId) {
const { data } = await api.get(`/user/${userId}/offers`);
return data;
},
getLogin: async () => {
getLogin: async function getLogin() {
try {
const { data: user } = await api.get('/auth/login')
console.log(user);
@@ -31,16 +31,17 @@ const actions = {
}
},
postLogin: async (email, password) => {
postLogin: async function postLogin(email, password) {
const { data } = await api.post('/auth/login', {
email,
password,
// discogs,
});
return data;
},
postRegister: async (email, password) => {
postRegister: async function postRegister(email, password) {
const { data } = await api.post('/auth/register', {
email,
password,