profile embedded and media entry points
This commit is contained in:
@@ -110,6 +110,24 @@ DB.getDB.then((DB) => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
router.get("/usr/:id/embedded", async (req, res) => {
|
||||||
|
const profileid = req.params.id;
|
||||||
|
const posts = await DB.getMediaTagPostOfUser(profileid, "@iframe:");
|
||||||
|
return res.json({
|
||||||
|
status: "ok",
|
||||||
|
posts
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
router.get("/usr/:id/media", async (req, res) => {
|
||||||
|
const profileid = req.params.id;
|
||||||
|
const posts = await DB.getMediaTagPostOfUser(profileid, "@youtube:|@vimeo:|@hls:");
|
||||||
|
return res.json({
|
||||||
|
status: "ok",
|
||||||
|
posts
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
router.get("/video/:id", async (req, res) => {
|
router.get("/video/:id", async (req, res) => {
|
||||||
videoId = req.params.id;
|
videoId = req.params.id;
|
||||||
return res.json([]);
|
return res.json([]);
|
||||||
|
|||||||
Reference in New Issue
Block a user