From 021695c5b17add38c5f05616c824a11b264a4aa6 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 26 Feb 2025 14:44:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20endpoints?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http/auth.http | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 http/auth.http diff --git a/http/auth.http b/http/auth.http new file mode 100644 index 0000000..078e995 --- /dev/null +++ b/http/auth.http @@ -0,0 +1,20 @@ +GET http://localhost:3005/api/auth/me +Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2YmM2MGIzMC1hNzcyLTRiM2MtOTYwOC1jMjgyNmNhMjA2NjEiLCJlbWFpbCI6ImFzZEBhc2QuY29tIiwiaWF0IjoxNzQwNTUyMjE4LCJleHAiOjE3NDA1NTU4MTh9.n3rFlFbqKY-kg8YF6cuRkT_Kc6hsCqQQ87TJbkS8DAg + +### +POST http://localhost:3005/api/register +Content-Type: application/json + +{ + "email": "asd@asd.com", + "password":"123456" +} + +### +POST http://localhost:3005/api/login +Content-Type: application/json + +{ + "email": "asd@asd.com", + "password":"123456" +}