Mercurial Hosting > disearch
annotate src/private/tools/config_save.txt.luan @ 6:d59ae3e468f1
login work
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 23 Oct 2023 21:09:05 -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 |