website/routes/imports/markdown_css.ts

15 lines
314 B
TypeScript
Raw Permalink Normal View History

2024-07-01 13:17:06 +02:00
import { Handlers } from '$fresh/server.ts'
import { CSS, KATEX_CSS } from '@deno/gfm'
2024-07-01 13:17:06 +02:00
export const handler: Handlers = {
2024-07-02 13:56:47 +02:00
GET() {
const styles = CSS + KATEX_CSS
return new Response(styles, {
headers: {
'Content-Type': 'text/css; charset=utf-8',
// TODO add cache headers and eTag
},
})
},
2024-07-01 13:17:06 +02:00
}