daster/source/requests/viewsms.d

13 lines
270 B
D

module requests.viewsms;
import vibe.vibe;
import response;
import data;
import singlog;
void viewSMS(HTTPServerRequest req, HTTPServerResponse res) {
auto jsr = req.json;
auto dataSMS = sqlGetSMS(jsr["id"].to!int);
render!("view-sms.dt", dataSMS)(res);
}