1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 11:07:44 +00:00

chore: use lib.strings.toJSON fully

This commit is contained in:
RGBCube 2025-03-21 23:46:54 +03:00
parent ac709b58f2
commit c993c36482
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -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 = {