19 lines
503 B
D
19 lines
503 B
D
module requests.addnumber;
|
|
|
|
import vibe.vibe;
|
|
import response;
|
|
import structures;
|
|
import data;
|
|
import singlog;
|
|
|
|
void addNumber(HTTPServerRequest req, HTTPServerResponse res) {
|
|
auto jsr = req.json;
|
|
bool edit = false;
|
|
NumberDB dataNumber;
|
|
dataNumber.group = jsr["group"].get!string;
|
|
// auto dataNumber = sqlGetDataNumber(jsr["number"].get!string);
|
|
auto groups = sqlGetGroups();
|
|
auto lists = sqlGetLists();
|
|
render!("edit-number.dt", edit, dataNumber, groups, lists)(res);
|
|
}
|