mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-09-10 16:40:49 +02:00
[#7782] fixed API preview examples
This commit is contained in:
@@ -167,7 +167,7 @@ export function docsAuthWithOAuth2(collection) {
|
||||
t.div(
|
||||
{ className: "alert success api-preview-alert" },
|
||||
t.span({ className: "label method" }, "POST"),
|
||||
t.span({ className: "path" }, `/api/collections/${collection.name}/auth-with-password`),
|
||||
t.span({ className: "path" }, `/api/collections/${collection.name}/auth-with-oauth2`),
|
||||
),
|
||||
t.table(
|
||||
{ className: "api-preview-table body-params" },
|
||||
|
||||
@@ -153,7 +153,7 @@ await pb.collection('${collection?.name}').requestVerification('test@example.com
|
||||
-H 'Authorization:TOKEN' \\
|
||||
-H 'Content-Type:application/json' \\
|
||||
-d '{ ... }' \\
|
||||
'${baseURL}/api/collections/${collection.name}/records/RECORD_ID'
|
||||
'${baseURL}/api/collections/${collection.name}/records'
|
||||
`,
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user