Finished guestbook and gallery. started diary

This commit is contained in:
Torsten Schulz
2024-09-27 07:40:06 +02:00
parent a2ee66c9de
commit c31be3f879
34 changed files with 2298 additions and 185 deletions

View File

@@ -8,8 +8,8 @@ const router = express.Router();
const socialNetworkController = new SocialNetworkController();
router.post('/usersearch', authenticate, socialNetworkController.userSearch);
router.get('/profile/:userId', authenticate, socialNetworkController.profile);
router.post('/folders', authenticate, socialNetworkController.createFolder);
router.get('/profile/main/:userId', authenticate, socialNetworkController.profile);
router.post('/folders/:folderId', authenticate, socialNetworkController.createFolder);
router.get('/folders', authenticate, socialNetworkController.getFolders);
router.get('/folder/:folderId', authenticate, socialNetworkController.getFolderImageList);
router.post('/images', authenticate, upload.single('image'), socialNetworkController.uploadImage);
@@ -17,5 +17,15 @@ router.get('/images/:imageId', authenticate, socialNetworkController.getImage);
router.put('/images/:imageId', authenticate, socialNetworkController.changeImage);
router.get('/imagevisibilities', authenticate, socialNetworkController.getImageVisibilityTypes);
router.get('/image/:hash', authenticate, socialNetworkController.getImageByHash);
router.get('/profile/images/folders/:username', authenticate, socialNetworkController.getFoldersByUsername);
router.delete('/folders/:folderId', authenticate, socialNetworkController.deleteFolder);
router.post('/guestbook/entries', authenticate, upload.single('image'), socialNetworkController.createGuestbookEntry);
router.get('/guestbook/entries/:username/:page', authenticate, socialNetworkController.getGuestbookEntries);
router.delete('/guestbook/entries/:entryId', authenticate, socialNetworkController.deleteGuestbookEntry);
router.get('/guestbook/image/:guestbookUserName/:entryId', authenticate, socialNetworkController.getGuestbookImage);
router.post('/diary', authenticate, socialNetworkController.createDiaryEntry);
router.put('/diary/:diaryId', authenticate, socialNetworkController.updateDiaryEntry);
router.delete('/diary/:diaryId', authenticate, socialNetworkController.deleteDiaryEntry);
router.get('/diary/:userId', authenticate, socialNetworkController.getDiaryEntries);
export default router;