Added visibility toggle to stash tile. Collapsed stash page directory structure.

This commit is contained in:
2024-03-26 03:00:50 +01:00
parent f6b50cc732
commit ce4b9e7d40
15 changed files with 127 additions and 30 deletions

View File

@@ -24,6 +24,10 @@ import {
signupApi,
} from './auth.js';
import {
fetchUserApi
} from './users.js';
import {
createStashApi,
removeStashApi,
@@ -96,6 +100,7 @@ export default async function initServer() {
router.delete('/api/session', logoutApi);
// USERS
router.get('/api/users/:userId', fetchUserApi);
router.post('/api/users', signupApi);
// STASHES

7
src/web/users.js Normal file
View File

@@ -0,0 +1,7 @@
import { fetchUser } from '../users.js';
export async function fetchUserApi(req, res) {
const user = await fetchUser(req.params.userId, {}, req.user);
res.send(user);
}