mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-25 09:43:49 +02:00
Add /settings endpoint, clean up README, make WorldDB U# impl easier/faster (#556)
* docs: Change readme * feat: New /settings endpoint; Make U# implementation easier To further avoid the 5 second string loading delay, developers are no longer required to use /init before getting data; Every data request endpoint will now initialize the world automatically and include a connection key in the response. Changed the way debug init works; It should now work for all endpoints without extra checks by just returning the current world as wrld_12345. New /settings endpoint allows the change of the allow_external_reads column in the database, but getting data is currently unimplemented. Fix store request logging being... completely wrong. * Update README.md Co-authored-by: Tayou <31988415+TayouVR@users.noreply.github.com> --------- Co-authored-by: Tayou <31988415+TayouVR@users.noreply.github.com>
This commit is contained in:
@@ -154,6 +154,16 @@ END;";
|
||||
return connectionKey;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the value of the allow_external_read field for the world with the specified ID in the database.
|
||||
/// </summary>
|
||||
/// <param name="worldId">The ID of the world to set the allow_external_read field for.</param>
|
||||
/// <param name="allowExternalRead">The value to set for the allow_external_read field.</param>
|
||||
public void SetWorldAllowExternalRead(string worldId, bool allowExternalRead)
|
||||
{
|
||||
sqlite.Execute("UPDATE worlds SET allow_external_read = ? WHERE world_id = ?", allowExternalRead, worldId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds a new world to the database.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user