Merge remote-tracking branch 'refs/remotes/origin/user-management' into user-management

This commit is contained in:
Tzvetan Trave committed 2025-10-19 22:02:39 +02:00
commit 24c36564fe
4 files changed
+110

No files matched your search

+41
View File
@@ -0,0 +1,41 @@
# ping
Available endpoints:
- POST `/ping`
- GET `/ping/:userId`
Common return:
- 500 with response
```json
{
"error": "Internal server error"
}
```
## POST `/ping`
Used to send a ping and update the lastSeenTime (can be used for activity time)
Input needed : just need a valid token
Can return:
- 200
```json
{
"msg": "last seen time updated successfully"
}
```
## GET `/ping/:userId`
Used to retrive the lastSeenTime of a user
Input needed : just need a valid token
Can return:
- 200
```json
{
"isLogged": "<true/false>"
}
```