15 lines
308 B
TypeScript
15 lines
308 B
TypeScript
import { Handlers } from '$fresh/server.ts'
|
|
import { CSS, KATEX_CSS } from 'gfm'
|
|
|
|
export const handler: Handlers = {
|
|
GET() {
|
|
const styles = CSS + KATEX_CSS
|
|
return new Response(styles, {
|
|
headers: {
|
|
'Content-Type': 'text/css; charset=utf-8',
|
|
// TODO add cache headers and eTag
|
|
},
|
|
})
|
|
},
|
|
}
|