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