GitFOSS
.ts
TypeScript
(application/typescript)
// 1st-party
import { ReqHandler } from "@ethicdevs/react-monolith";
// app views
import HomeView, { HomeViewProps } from "../views/HomeView";

export const getHomeView: ReqHandler = async (request, reply) => {
  const reqHandler = reply.makeRequestHandler(request, reply);
  return reqHandler<HomeViewProps>(HomeView.name, {});
};