uppy/examples/reactrouter/app/routes.ts
Prakash 567be4efab
@uppy/examples: Add new examples (#5942)
Had to create a new PR since after the 5.0 merge, #5818 was throwing
errors.

## Examples Added

- **React Router v7**
- Uppy Dashboard with Tus, XHR, and Transloadit , tus server implemented
using react-router/express adapter , rest using regular resource routes
- This still doesn't have hot reloading in the dev server though , can
be added through nodemon

- **Next.js**
  - Uppy Dashboard with Tus, XHR, and Transloadit  

- **Angular**
  - Uppy Dashboard and Dashboard Modal with Tus
2025-09-10 21:46:19 +05:30

7 lines
272 B
TypeScript

import { index, type RouteConfig, route } from '@react-router/dev/routes'
export default [
index('routes/_index.tsx'),
route('api/upload/xhr', 'routes/upload/route.ts'),
route('api/transloadit-params', 'routes/transloadit-params/route.ts'),
] satisfies RouteConfig