-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Edugaze-Inc/edugaze-be into…
… main
- Loading branch information
Showing
22 changed files
with
196 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
### analysis protocols | ||
|
||
URL http://134.209.132.84:4004/ | ||
|
||
**event: "join"** | ||
|
||
`socket.emit('join', {sid:room})` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
POST | ||
|
||
http://localhost:5000/api/v1/auth/signup | ||
http://178.128.140.169:4002/api/v1/auth/signup | ||
|
||
- Example Request | ||
|
||
|
@@ -13,6 +13,7 @@ | |
|
||
```json | ||
{ | ||
"username": "hager", | ||
"email": "[email protected]", | ||
"password": "12345678", | ||
"role": "student" | ||
|
@@ -27,7 +28,10 @@ | |
|
||
```json | ||
{ | ||
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImhhZ2VyQHRlc3QuY29tIiwicm9sZSI6Imluc3RydWN0b3IiLCJpYXQiOjE2MjM2MjMyOTYsImV4cCI6MTYyNDA1NTI5Nn0.0UmSsZCKkbs2zfcJJN6-1h3T1E6DKkAe9Hw5v7uT9zk" | ||
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImhhZ2VyQHRlc3QuY29tIiwicm9sZSI6Imluc3RydWN0b3IiLCJpYXQiOjE2MjM2MjMyOTYsImV4cCI6MTYyNDA1NTI5Nn0.0UmSsZCKkbs2zfcJJN6-1h3T1E6DKkAe9Hw5v7uT9zk", | ||
"username": "hager", | ||
"email": "[email protected]", | ||
"role": "student" | ||
} | ||
``` | ||
|
||
|
@@ -47,7 +51,7 @@ | |
|
||
POST | ||
|
||
http://localhost:5000/api/v1/auth/login | ||
http://178.128.140.169:4002/api/v1/auth/login | ||
|
||
- Example Request | ||
|
||
|
@@ -67,7 +71,9 @@ | |
```json | ||
{ | ||
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImhhZ2VyQHRlc3QuY29tIiwicm9sZSI6Imluc3RydWN0b3IiLCJpYXQiOjE2MjM2MjMyOTYsImV4cCI6MTYyNDA1NTI5Nn0.0UmSsZCKkbs2zfcJJN6-1h3T1E6DKkAe9Hw5v7uT9zk", | ||
"role": "instructor" | ||
"username": "hager", | ||
"email": "[email protected]", | ||
"role": "student" | ||
} | ||
``` | ||
|
||
|
@@ -81,9 +87,9 @@ | |
|
||
- **verify** | ||
|
||
POST | ||
GET | ||
|
||
http://localhost:5000/api/v1/auth/verify | ||
http://178.128.140.169:4002/api/v1/auth/verify | ||
|
||
- Example Request | ||
|
||
|
@@ -98,6 +104,16 @@ | |
|
||
- Response | ||
|
||
```json | ||
{ | ||
"message": "Verified", | ||
"_id": "60ef5d2c0a179c0f3819d528", | ||
"username": "fhdnkn", | ||
"email": "[email protected]", | ||
"role": "instructor" | ||
} | ||
``` | ||
|
||
- verified | ||
|
||
200 - verified | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import mongoose from "mongoose"; | ||
|
||
const uri = "mongodb://auth-db-service:27017/auth-test"; | ||
|
||
const connectDb = () => mongoose.connect(uri); | ||
|
||
export { connectDb }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.