Mercurial Hosting > disearch
annotate src/private/tools/config_save.txt.luan @ 13:af2b95854072
add server records
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 30 Oct 2023 21:32:42 -0600 |
parents | 43814e9f5802 |
children | 552d6f944acb |
rev | line source |
---|---|
3 | 1 local Luan = require "luan:Luan.luan" |
2 local error = Luan.error | |
3 local stringify = Luan.stringify or error() | |
4 local Io = require "luan:Io.luan" | |
5 local Http = require "luan:http/Http.luan" | |
6 local Config = require "site:/lib/Config.luan" | |
7 | |
8 | |
9 return function() | |
10 local config = Http.request.parameters.config or error() | |
11 Config.set(config) | |
12 Io.stdout = Http.response.text_writer() | |
13 %>saved<% | |
14 end |