mirror of
https://github.com/RGBCube/ncc
synced 2025-07-28 18:47:44 +00:00
chore: use lib.strings.toJSON fully
This commit is contained in:
parent
ac709b58f2
commit
c993c36482
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
{ self, config, lib, ... }: let
|
||||
inherit (config.networking) domain;
|
||||
inherit (lib) const enabled genAttrs merge strings;
|
||||
inherit (lib) const enabled genAttrs merge;
|
||||
inherit (lib.strings) toJSON;
|
||||
|
||||
fqdn = "chat.${domain}";
|
||||
port = 8002;
|
||||
|
@ -10,7 +11,7 @@
|
|||
add_header Access-Control-Allow-Origin * always;
|
||||
|
||||
default_type application/json;
|
||||
return 200 '${strings.toJSON data}';
|
||||
return 200 '${toJSON data}';
|
||||
'';
|
||||
|
||||
configWellKnownResponse.locations = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue