MCPcopy Index your code
hub / github.com/Dispatcharr/Dispatcharr / addStream

Method addStream

frontend/src/api.js:1192–1208  ·  view source on GitHub ↗
(values)

Source from the content-addressed store, hash-verified

1190 }
1191
1192 static async addStream(values) {
1193 try {
1194 const response = await request(`${host}/api/channels/streams/`, {
1195 method: 'POST',
1196 body: values,
1197 });
1198
1199 if (response.id) {
1200 useStreamsStore.getState().addStream(response);
1201 }
1202
1203 await API.requeryStreams();
1204 return response;
1205 } catch (e) {
1206 errorNotification('Failed to add stream', e);
1207 }
1208 }
1209
1210 static async updateStream(values) {
1211 try {

Callers 2

addStreamFunction · 0.80
streams.test.jsxFile · 0.80

Calls 3

requestFunction · 0.85
errorNotificationFunction · 0.85
requeryStreamsMethod · 0.80

Tested by

no test coverage detected