Разработка:
- БД скрипт с начальными данными
- вывод списка номеров телефонов по группам
This commit is contained in:
Alexander Zhirov 2023-05-31 02:04:03 +03:00
parent ca5259c638
commit 815b5a6b6a
34 changed files with 1229 additions and 49 deletions

15
source/response.d Normal file
View file

@ -0,0 +1,15 @@
module response;
import vibe.vibe;
struct Res {
bool error;
string message;
string data;
}
void send(HTTPServerResponse res, bool error = false, string message = "", string data = "") {
res.writeJsonBody(Res(
error, message, data
).serializeToJson());
}