This commit is contained in:
Mekan1206
2026-06-02 14:28:25 +05:00
commit b154d5c198
9 changed files with 2049 additions and 0 deletions

35
readme.md Normal file
View File

@@ -0,0 +1,35 @@
📨 REST API
Endpoint:
# code derek bashga messageler hem ugradyp bilersiniz
POST /api/data
Body (JSON görnüşinde):
{
"phone": "63435005",
"code": "1234"
}
Jogap (Response):
{
"message": "Data received and processed successfully.",
"received": {
"phone": "63435005",
"code": "1234"
}
}
📡 Socket.IO Ulanylyşy
Baglanyşyk döretmek:
const socket = io("http://localhost:3000");
Ibermek:
socket.emit("sendSignInData", { phone: "63435005", code: "1234" });
Almak:
socket.on("sendSmsCode", (data) => {
console.log(data);
});