16 lines
400 B
D
16 lines
400 B
D
|
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;
|
||
|
auto dataNumber = getDataNumber(jsr["number"].get!string);
|
||
|
auto groups = getGroups();
|
||
|
auto lists = getLists();
|
||
|
render!("edit-number.dt", edit, dataNumber, groups, lists)(res);
|
||
|
}
|