20 lines
374 B
D
20 lines
374 B
D
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();
|
||
}
|