BREAKING CHANGES: (for SeCuRiTy):
By default: - `ssid_sessions[socket.ssid]` is now `session_data` - `require` is no longer allowed in user scripts To access global `socket_sessions` and `ssid_sessions`, as well as `require` additional modules, you must set `privileged: true` for the specific service. See `config.json`.
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var WTVBGMusic = require("./WTVBGMusic.js");
|
||||
var wtvbgm = new WTVBGMusic(minisrv_config, ssid_sessions[socket.ssid]);
|
||||
if (request_headers.query.category) {
|
||||
var musicList = wtvbgm.getCategorySongList(request_headers.query.category);
|
||||
var categoryName = wtvbgm.getCategoryName(request_headers.query.category);
|
||||
|
||||
Reference in New Issue
Block a user