Skip to content

Kody is live

Watch the launch video — what Kody is, and why it exists.

← Public packages

@kentcdodds/package-app-kit

Design tokens, PWA install/update, About/version, cache helpers, and optional realtime notes sync for Kody package apps.

app/controllers/icons.ts

15 lines · 405 B · TypeScript
import type { BuildAction } from 'remix/router'
import { iconPngResponse } from '../../src/icons.ts'
import { routes } from '../routes.ts'

export const icon192 = {
	async handler() {
		return iconPngResponse(192)
	},
} satisfies BuildAction<'ANY', typeof routes.icon192>

export const icon512 = {
	async handler() {
		return iconPngResponse(512)
	},
} satisfies BuildAction<'ANY', typeof routes.icon512>