small fixes
This commit is contained in:
parent
72ec41dccf
commit
31be767ef1
@ -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>
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user