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