30 lines
647 B
TypeScript
30 lines
647 B
TypeScript
import { json } from '@sveltejs/kit';
|
|
import { base } from '$app/paths';
|
|
import type { RequestHandler } from './$types';
|
|
|
|
export const GET: RequestHandler = () => {
|
|
return json({
|
|
short_name: 'Mermaid',
|
|
name: 'Mermaid Live Editor',
|
|
icons: [
|
|
{
|
|
src: `${base}/icon-192.png`,
|
|
type: 'image/png',
|
|
sizes: '192x192'
|
|
},
|
|
{
|
|
src: `${base}/icon-512.png`,
|
|
type: 'image/png',
|
|
sizes: '512x512'
|
|
}
|
|
],
|
|
start_url: `${base}/edit/`,
|
|
background_color: '#6366F1',
|
|
display: 'standalone',
|
|
scope: `${base}/edit/`,
|
|
theme_color: '#6366F1',
|
|
description: 'FlowChart & Diagrams Editor.',
|
|
orientation: 'landscape'
|
|
});
|
|
};
|