Skip to content
Source
Sign inSign up
TanStack/devtools
Open History to see the last commit

api.names.ts

10 lines256 Bytes

1import { createFileRoute } from '@tanstack/react-router'
2import { json } from '@tanstack/react-start'
3​
4export const Route = createFileRoute('/demo/api/names')({
5 server: {
6 handlers: {
7 GET: () => json(['Alice', 'Bob', 'Charlie']),
8 },
9 },
10})