server: make getTarif public procedure
This commit is contained in:
parent
e222a3093a
commit
bd775babf9
@ -1,11 +1,11 @@
|
||||
import { protectedProcedure } from '../../procedure';
|
||||
import { publicProcedure } from '../../procedure';
|
||||
import { router } from '../../trpc';
|
||||
import { GetTarifInputSchema } from './types';
|
||||
import initializeApollo from '@/apollo/client';
|
||||
import configuratorHelper from '@/process/configurator/lib/helper';
|
||||
|
||||
export const tarifRouter = router({
|
||||
getTarif: protectedProcedure.input(GetTarifInputSchema).query(async ({ input }) => {
|
||||
getTarif: publicProcedure.input(GetTarifInputSchema).query(async ({ input }) => {
|
||||
const apolloClient = initializeApollo();
|
||||
const { getTarifs } = configuratorHelper({ apolloClient });
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user