Create apiEndpoints.js

merge-requests/210/merge
Moe 2021-04-26 18:24:11 -07:00
parent 9e3e1c3d1e
commit da83fa6cbd
1 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,56 @@
module.exports = (lang) => {
return [
{
setName: lang.Monitors,
apis: [
{
schema: "/${API_KEY}/monitor/${GROUP_KEY}",
name: lang.getAllMonitors,
requestType: 'GET',
},
{
schema: "/${API_KEY}/monitor/${GROUP_KEY}/${MONITOR_ID}",
name: lang.getAMonitor,
requestType: 'GET',
},
]
},
{
setName: lang.Videos,
apis: [
{
schema: "/${API_KEY}/videos/${GROUP_KEY}",
name: lang.getVideos,
requestType: 'GET',
},
{
schema: "/${API_KEY}/videos/${GROUP_KEY}/${MONITOR_ID}",
name: lang.getVideosForMonitor,
requestType: 'GET',
},
{
schema: "/${API_KEY}/videos/${GROUP_KEY}/${MONITOR_ID}/${FILENAME}",
name: lang["Get a Monitor"],
requestType: 'GET',
},
]
},
{
setName: lang.Streams,
apis: [
{
schema: "/${API_KEY}/tvChannels/${GROUP_KEY}",
name: lang.getAllTvChannels,
description: lang.getAllTvChannelsText,
requestType: 'GET',
},
{
schema: "/${API_KEY}/tvChannels/${GROUP_KEY}/${MONITOR_ID}",
name: lang.getATvChannel,
description: lang.getATvChannelText,
requestType: 'GET',
},
]
},
]
}