small fixes
This commit is contained in:
parent
8437f89bfa
commit
02068a71ed
@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Vite App</title>
|
<title>RSS Alchemy</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
import type {Specs} from "@/urlmaker/specs.ts";
|
import type {Specs} from "@/urlmaker/specs.ts";
|
||||||
|
|
||||||
const apiBase = import.meta.env.VITE_API_BASE || document.location.origin;
|
const apiBase = import.meta.env.VITE_API_BASE || document.location.origin;
|
||||||
const renderEndpoint = '/api/v1/render/';
|
const renderEndpoint = '/api/v1/render/'; // trailing slash
|
||||||
const screenshotEndpoint = `/api/v1/screenshot/`;
|
const screenshotEndpoint = '/api/v1/screenshot'; // no trailing slash
|
||||||
|
|
||||||
export async function decodeUrl(url: string): Promise<Specs> {
|
export async function decodeUrl(url: string): Promise<Specs> {
|
||||||
const splitUrl = url.split(renderEndpoint);
|
const splitUrl = url.split(renderEndpoint);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user