diff --git a/routes/post.js b/routes/post.js index 515a076..6fa9670 100644 --- a/routes/post.js +++ b/routes/post.js @@ -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) => { videoId = req.params.id; return res.json([]);