Add mock data + Fix package.json not pushed + Add REST requests
This commit is contained in:
committed by
Andrew Trieu
parent
a25ea2d90a
commit
f3d5ce2524
2
server/debug/get_feed.rest
Normal file
2
server/debug/get_feed.rest
Normal file
@@ -0,0 +1,2 @@
|
||||
GET localhost:3001/posts/
|
||||
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0YWRhMGMzNWZjYmJmNmI4YzI0ZGZkMSIsImFkbWluIjp0cnVlLCJpYXQiOjE2ODkxMDIwNzF9.YmbSFv4q6sTRqw0bvxQN-dBiKElEY8NcGeIKqu6B0lw
|
||||
2
server/debug/get_user.rest
Normal file
2
server/debug/get_user.rest
Normal file
@@ -0,0 +1,2 @@
|
||||
GET localhost:3001/users/64ada0c35fcbbf6b8c24dfd2
|
||||
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0YWRhMGMzNWZjYmJmNmI4YzI0ZGZkMSIsImFkbWluIjp0cnVlLCJpYXQiOjE2ODkxMDIwNzF9.YmbSFv4q6sTRqw0bvxQN-dBiKElEY8NcGeIKqu6B0lw
|
||||
6
server/debug/login.rest
Normal file
6
server/debug/login.rest
Normal file
@@ -0,0 +1,6 @@
|
||||
POST localhost:3001/auth/login
|
||||
|
||||
{
|
||||
"email": "admin@chathive.com",
|
||||
"password": "admin"
|
||||
}
|
||||
1
server/debug/register.rest
Normal file
1
server/debug/register.rest
Normal file
@@ -0,0 +1 @@
|
||||
POST localhost:3001/users/
|
||||
Reference in New Issue
Block a user