small fixes

This commit is contained in:
Egor Aristov 2025-02-09 10:47:25 +03:00
parent 8437f89bfa
commit 02068a71ed
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
<title>RSS Alchemy</title>
</head>
<body>
<div id="app"></div>

View File

@ -1,8 +1,8 @@
import type {Specs} from "@/urlmaker/specs.ts";
const apiBase = import.meta.env.VITE_API_BASE || document.location.origin;
const renderEndpoint = '/api/v1/render/';
const screenshotEndpoint = `/api/v1/screenshot/`;
const renderEndpoint = '/api/v1/render/'; // trailing slash
const screenshotEndpoint = '/api/v1/screenshot'; // no trailing slash
export async function decodeUrl(url: string): Promise<Specs> {
const splitUrl = url.split(renderEndpoint);