Revert "feat: add file routing option"

This reverts commit 750783e860.
This commit is contained in:
wobsoriano
2022-11-05 21:24:24 -07:00
parent c11a5cfa8a
commit 1fc4d9d0d0
22 changed files with 435 additions and 318 deletions

View File

@@ -1,5 +1,5 @@
import { z } from 'zod'
import { publicProcedure, router } from '#trpc/init'
import { publicProcedure, router } from '../trpc'
const baseURL = 'https://jsonplaceholder.typicode.com'
@@ -12,7 +12,7 @@ const TodoShape = z.object({
export type Todo = z.infer<typeof TodoShape>
export default router({
export const todoRouter = router({
getTodos: publicProcedure
.query(() => {
return $fetch<Todo[]>(`${baseURL}/todos`)