网络直播增加开关
This commit is contained in:
@@ -27,6 +27,12 @@ export async function POST(request: NextRequest) {
|
||||
}
|
||||
|
||||
switch (action) {
|
||||
case 'toggleEnabled': {
|
||||
const { enabled } = body;
|
||||
config.WebLiveEnabled = enabled;
|
||||
break;
|
||||
}
|
||||
|
||||
case 'add': {
|
||||
const { name, platform, roomId } = body;
|
||||
if (!name || !platform || !roomId) {
|
||||
|
||||
Reference in New Issue
Block a user