feat: remove authentication (#1)

This commit is contained in:
Sam Denty
2024-09-26 17:45:41 +01:00
committed by GitHub
parent 6fb59d2bc5
commit 2a29fbbe82
21 changed files with 27 additions and 597 deletions

View File

@@ -1,9 +1,8 @@
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 }));
return json({ id: args.params.id });
}
export default IndexRoute;