Mercurial Hosting > disearch
annotate src/private/tools/config_save.txt.luan @ 14:80105b716a62
start bot
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 31 Oct 2023 23:56:48 -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 |