how to access Nested routes

export const appRouter = t.router({
show: t.procedure.query(async () => {
const cities: Cities[] = await db.select().from(city);
return cities;
}),

auth: authRouter,
})
export const appRouter = t.router({
show: t.procedure.query(async () => {
const cities: Cities[] = await db.select().from(city);
return cities;
}),

auth: authRouter,
})
export const authRouter = t.router({
log: t.procedure.query(async () => {
const cities: Cities[] = await db.select().from(city);
return cities;
})

})
export const authRouter = t.router({
log: t.procedure.query(async () => {
const cities: Cities[] = await db.select().from(city);
return cities;
})

})
when i visit localhost:5000/show , it works but when i visit localhost:5000/auth/log , it does not work anyone who can help me ?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server