mirror of
https://github.com/pinry/pinry.git
synced 2025-11-16 09:55:50 +01:00
Feature: Add user-board view
This commit is contained in:
committed by
Isaac Bythewood
parent
c59fa32f1f
commit
e039ef7142
@@ -55,6 +55,11 @@ function fetchPinsForBoard(boardId) {
|
||||
);
|
||||
}
|
||||
|
||||
function fetchBoardForUser(username) {
|
||||
const url = `${API_PREFIX}boards/?submitter__username=${username}`;
|
||||
return axios.get(url);
|
||||
}
|
||||
|
||||
const User = {
|
||||
storageKey: 'pinry.user',
|
||||
logIn(username, password) {
|
||||
@@ -128,5 +133,6 @@ export default {
|
||||
fetchPin,
|
||||
fetchPins,
|
||||
fetchPinsForBoard,
|
||||
fetchBoardForUser,
|
||||
User,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user