feat: auth middleware

- CORS headers
- Get all links that belong to user
This commit is contained in:
Juan Rodriguez
2024-05-13 22:34:35 +02:00
parent 0ad534065c
commit 7f2a27ec79
9 changed files with 50 additions and 22 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ meta {
}
delete {
url: {{baseUrl}}/api/links/ad9fb116-9e5b-45b7-b272-5285b579d2e4
url: {{baseUrl}}/api/links/995c5abf-2506-4d3e-b664-f2168c34b936
body: none
auth: none
}
-11
View File
@@ -1,11 +0,0 @@
meta {
name: Get Link
type: http
seq: 3
}
get {
url: {{baseUrl}}/api/links/d017c966-c28b-4c4c-a83e-97bce81ee6e7
body: none
auth: none
}
+2 -2
View File
@@ -1,11 +1,11 @@
meta {
name: Index Link
type: http
seq: 4
seq: 5
}
get {
url: {{baseUrl}}/3JQV8w
url: {{baseUrl}}/HkIN8g
body: none
auth: none
}
+2 -2
View File
@@ -1,11 +1,11 @@
meta {
name: Update Link
type: http
seq: 5
seq: 6
}
put {
url: {{baseUrl}}/api/links/0da9dc9d-c56c-4d4e-942e-1ebf05ed7090
url: {{baseUrl}}/api/links/b5a0112d-49e6-4bc9-bd2b-6d5cc10cd5d2
body: json
auth: none
}