Track and save on groceries

feat: add UNAUTHORIZED error

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>

+8 -4
+8 -4
packages/api/src/contract/index.ts
··· 1 1 import { oc } from "@orpc/contract"; 2 2 3 - export const base = oc.$route({ 4 - inputStructure: "detailed", 5 - outputStructure: "detailed", 6 - }); 3 + export const base = oc 4 + .$route({ 5 + inputStructure: "detailed", 6 + outputStructure: "detailed", 7 + }) 8 + .errors({ 9 + UNAUTHORIZED: {}, 10 + });