feat: integrate trpc to app

This commit is contained in:
Justin Lin committed 2025-04-16 16:02:23 +08:00
1 parent 529869671c
commit 55a41dd3b5
7 files changed
+50 -6

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import config from '../config.js'
import { publicProcedure, router } from '../trpc.js'
export const linkRouter = router({
surveyLink: publicProcedure.query(() => {
return config.surveyUrl
}),
bugReportLink: publicProcedure.query(() => {
return config.bugReportUrl
}),
})