File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed
Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 1- . /controller /article.js
2- . /models /article.js
31users.sql
42node_modules
Original file line number Diff line number Diff line change 11### Get User (Token expires after 60s)
2- GET http://localhost :5000/users
2+ GET http://34.101.78.157 :5000/users
33Authorization: Bearer <token>
44
55
66
77### Register User
8- POST http://localhost :5000/register
8+ POST http://34.101.78.157 :5000/register
99Content-Type: application/json
1010
1111{
12- "nama ": "randy23561 ",
12+ "name ": "tesnama1 ",
13131414 "password": "1234567",
1515 "rePassword": "1234567"
1616}
1717
18- ### Login
19- POST http://localhost:5000/login
18+ POST http://34.101.78.157:5000/login
2019Content-Type: application/json
2120
2221{
23- "email": "tesemail123 @gmail.com",
22+ "email": "tesemail1234 @gmail.com",
2423 "password": "1234567"
2524}
2625
2726### Get New Token
28- GET http://localhost :5000/token
27+ GET http://34.101.78.157 :5000/token
2928Content-Type: application/json
3029
3130### Logout
3231DELETE http://localhost:5000/logout
33- Content-Type: application/json
32+ Content-Type: application/json
33+ ###
34+ SERVER : 34.101.78.157
35+ PORT : 5000
36+
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { refreshToken } from "../controller/refreshToken.js";
88
99const router = express . Router ( ) ;
1010
11+
1112router . get ( "/users" , verifyToken , getUsers ) ;
1213router . post ( "/register" , Register ) ;
1314router . post ( "/login" , Login ) ;
You can’t perform that action at this time.
0 commit comments