Mercurial Hosting > disearch
comparison src/private/tools/config_save.txt.luan @ 3:43814e9f5802
add config
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 21 Oct 2023 22:52:41 -0600 |
parents | |
children | 552d6f944acb |
comparison
equal
deleted
inserted
replaced
2:5ae5fbce0d75 | 3:43814e9f5802 |
---|---|
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 |