Mark-Lasfar commited on
Commit ·
138dcd8
1
Parent(s): e13816b
Add GraphQL
Browse files
server.js
CHANGED
|
@@ -18393,7 +18393,8 @@ app.get('/api/users/:userId/contributions', async (req, res) => {
|
|
| 18393 |
// ============================================
|
| 18394 |
// GET /api/analytics/also-viewed - جلب المستخدمين الذين شاهدوا هذا الملف أيضاً
|
| 18395 |
// ============================================
|
| 18396 |
-
app.get('/api/analytics/also-viewed', async (req, res) => {
|
|
|
|
| 18397 |
try {
|
| 18398 |
const { userId } = req.query;
|
| 18399 |
|
|
|
|
| 18393 |
// ============================================
|
| 18394 |
// GET /api/analytics/also-viewed - جلب المستخدمين الذين شاهدوا هذا الملف أيضاً
|
| 18395 |
// ============================================
|
| 18396 |
+
app.get('/api/analytics/also-viewed', authenticateToken, async (req, res) => {
|
| 18397 |
+
|
| 18398 |
try {
|
| 18399 |
const { userId } = req.query;
|
| 18400 |
|