Created
January 8, 2022 17:26
-
-
Save dipeshhkc/7cfc543ed7ff0cfec56632e1be7684dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { LoaderFunction } from '@remix-run/server-runtime'; | |
import { db } from '~/utils/db.server'; | |
export const loader: LoaderFunction = async () => { | |
return db.task.findMany(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment