daster/source/requests/editnumber.d

16 lines
400 B
D
Raw Normal View History

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);
}