Can you explain how the routing system works in this template?
src/routes/ becomes a route automatically._ prefix — they wrap child routes via <Outlet /> without adding a URL segment. For example, _sidebar.tsx provides the sidebar shell for all routes under _sidebar/.__root.tsx) provides the outermost wrapper.What about data fetching?
@tanstack/react-query). The QueryClient is created in main.tsx and passed through context.lib/api.ts:const data = await get<MyType>("/endpoint")/api/* are intercepted by a Vite plugin and routed to the Hono server in-process — no CORS, no proxy, no separate server process.Nice. How would I add a new API endpoint?
api.ts:app.get("/api/my-endpoint", (c) => {
return c.json({ message: "hello" })
})server.ts serves the Hono app directly.