mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
dont allow examples when api is none (#243)
This commit is contained in:
@@ -21,9 +21,7 @@ export const appRouter = {
|
||||
{{/if}}
|
||||
};
|
||||
export type AppRouter = typeof appRouter;
|
||||
{{/if}}
|
||||
|
||||
{{#if (eq api "trpc")}}
|
||||
{{else if (eq api "trpc")}}
|
||||
import {
|
||||
{{#if auth}}protectedProcedure, {{/if}}publicProcedure,
|
||||
router,
|
||||
@@ -49,4 +47,7 @@ export const appRouter = router({
|
||||
{{/if}}
|
||||
});
|
||||
export type AppRouter = typeof appRouter;
|
||||
{{else}}
|
||||
export const appRouter = {};
|
||||
export type AppRouter = typeof appRouter;
|
||||
{{/if}}
|
||||
|
||||
Reference in New Issue
Block a user