Created unified file card component, recent videos component (not done) and started scaffolding work on the backend

This commit is contained in:
Isaac Grynsztein
2020-07-13 22:09:48 -04:00
parent d371ccf094
commit 4ebb2d4297
14 changed files with 310 additions and 3 deletions

View File

@@ -2046,6 +2046,24 @@ app.post('/api/getFile', optionalJwt, function (req, res) {
}
});
app.post('/api/getAllFiles', optionalJwt, function (req, res) {
files = null;
playlists = null;
if (req.isAuthenticated()) {
const videos = auth_api.getUserVideos(req.user.uid, 'video');
const audios = auth_api.getUserVideos(req.user.uid, 'audio');
const audio_playlists = null;
const video_playlists = null;
} else {
}
res.send({
files: files,
playlists: playlists
})
});
// video sharing
app.post('/api/enableSharing', optionalJwt, function(req, res) {
var type = req.body.type;