mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
refactor: change ValidSyntaxLanguages from string array to HashSet for improved performance
This commit is contained in:
@@ -418,7 +418,7 @@ namespace SharpbinV3.Server.Controllers
|
||||
{
|
||||
return Ok(new PasteOptionsDto
|
||||
{
|
||||
Syntaxes = _pasteSettings.ValidSyntaxLanguages,
|
||||
Syntaxes = [.. _pasteSettings.ValidSyntaxLanguages],
|
||||
Visibilities =
|
||||
[
|
||||
new() { Value = 0, DisplayName = "Public" },
|
||||
|
||||
Reference in New Issue
Block a user