2023-05-31 22:10:08 +00:00
|
|
|
module requests.editnumber;
|
|
|
|
|
|
|
|
import vibe.vibe;
|
|
|
|
import response;
|
|
|
|
import data;
|
|
|
|
import singlog;
|
|
|
|
|
|
|
|
void editNumber(HTTPServerRequest req, HTTPServerResponse res) {
|
|
|
|
auto jsr = req.json;
|
|
|
|
bool edit = true;
|
2023-06-01 21:36:21 +00:00
|
|
|
auto dataNumber = sqlGetDataNumber(jsr["number"].get!string);
|
|
|
|
auto groups = sqlGetGroups();
|
|
|
|
auto lists = sqlGetLists();
|
2023-05-31 22:10:08 +00:00
|
|
|
render!("edit-number.dt", edit, dataNumber, groups, lists)(res);
|
|
|
|
}
|