mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-09-04 16:23:22 +00:00
ENH - open exact EasyShare content targets
This commit is contained in:
@@ -5387,6 +5387,15 @@ app.post('/api/:endpoint', (request, response) => {
|
||||
})
|
||||
return
|
||||
}
|
||||
if (endpoint === 'picstagram:post') {
|
||||
const post = picstagramPosts.find((item) => item.id === request.body.id)
|
||||
response.json(
|
||||
post
|
||||
? { success: true, data: post }
|
||||
: { success: false, error: 'post_not_found' },
|
||||
)
|
||||
return
|
||||
}
|
||||
if (endpoint === 'picstagram:explore') {
|
||||
response.json({
|
||||
success: true,
|
||||
@@ -5768,6 +5777,15 @@ app.post('/api/:endpoint', (request, response) => {
|
||||
response.json({ success: true })
|
||||
return
|
||||
}
|
||||
if (endpoint === 'fliptok:video') {
|
||||
const video = flipTokVideos.find((item) => item.id === request.body.id)
|
||||
response.json(
|
||||
video
|
||||
? { success: true, data: video }
|
||||
: { success: false, error: 'video_not_found' },
|
||||
)
|
||||
return
|
||||
}
|
||||
if (endpoint === 'fliptok:follow') {
|
||||
flipTokVideos
|
||||
.filter((video) => video.profile_id === request.body.profileId)
|
||||
|
||||
Reference in New Issue
Block a user