1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/******************************************************************************************
📍 منصة تحليل الأمان الجغرافي MKT KSA – تطوير منصور بن خالد
* 📄 رخصة Apache 2.0 – يسمح بالاستخدام والتعديل بشرط النسبة وعدم تقديم ضمانات.
* MKT KSA Geolocation Security – Developed by Mansour Bin Khalid (KSA 🇸🇦)
* Licensed under Apache 2.0 – https://www.apache.org/licenses/LICENSE-2.0
* © 2025 All rights reserved.
File Name: mod.rs
Path: src/api/mod.rs
File Role:
هذا الملف هو "موجه المرور" لطبقة الـ API. يقوم بتجميع وتسجيل جميع
نقاط النهاية (Endpoints) من الوحدات المختلفة (مثل auth, geo, device)
في مكان واحد، لتقديمها إلى خادم `actix-web` الرئيسي.
Main Tasks:
1. الإعلان عن جميع وحدات API الفرعية.
2. توفير دالة `config` واحدة لتسجيل جميع خدمات API.
--------------------------------------------------------------
File Name: mod.rs
Path: src/api/mod.rs
File Role:
This file is the "traffic director" for the API layer. It aggregates and
registers all endpoints from the different modules (like auth, geo, device)
in a single place to be served by the main `actix-web` server.
Main Tasks:
1. Declare all API sub-modules.
2. Provide a single `config` function to register all API services.
******************************************************************************************/
use web;
// --- وحدات API الفرعية ---
// --- API Sub-modules ---
/// Arabic: تقوم هذه الدالة بتسجيل جميع مسارات API في التطبيق.
/// English: This function registers all API routes in the application.