daster/source/requests/delsms.d

20 lines
374 B
D
Raw Normal View History

module requests.delsms;
import vibe.vibe;
import response;
import structures;
import data;
import singlog;
void delSMS(HTTPServerRequest req, HTTPServerResponse res) {
auto jsr = req.json;
int idsms = jsr["id"].get!int;
if (!sqlDeleteSMS(idsms)) {
res.send(true, "Не удалось удалить SMS");
return;
}
res.send();
}