Новые изменения в компонеты
This commit is contained in:
parent
d3d3ad92c3
commit
3411dd4931
17 changed files with 99 additions and 58 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import type { APIRoute } from 'astro';
|
||||
|
||||
const POCKETBASE_URL = import.meta.env.POCKETBASE_URL || 'http://127.0.0.1:8090';
|
||||
const PB_POCKETBASE_URL = import.meta.env.PB_POCKETBASE_URL || 'http://127.0.0.1:8090';
|
||||
|
||||
export const POST: APIRoute = async ({ request }) => {
|
||||
try {
|
||||
|
|
@ -35,7 +35,7 @@ export const POST: APIRoute = async ({ request }) => {
|
|||
}), { status: 400 });
|
||||
}
|
||||
|
||||
const response = await fetch(`${POCKETBASE_URL}/api/collections/users/confirm-password-reset`, {
|
||||
const response = await fetch(`${PB_POCKETBASE_URL}/api/collections/users/confirm-password-reset`, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue