mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-09 21:11:29 +03:00
Created unified file card component, recent videos component (not done) and started scaffolding work on the backend
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user