fix: remove monorepo
This commit is contained in:
9
app/routes/chat.$id.tsx
Normal file
9
app/routes/chat.$id.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { json, type LoaderFunctionArgs } from '@remix-run/cloudflare';
|
||||
import { default as IndexRoute } from './_index';
|
||||
import { loadWithAuth } from '~/lib/.server/auth';
|
||||
|
||||
export async function loader(args: LoaderFunctionArgs) {
|
||||
return loadWithAuth(args, async (_args, session) => json({ id: args.params.id, avatar: session.avatar }));
|
||||
}
|
||||
|
||||
export default IndexRoute;
|
||||
Reference in New Issue
Block a user