gitfoss | d8c0b8e9f95a4056d0200a5edd32cec277d798f7 | app/controllers/HomeController.ts ∙ 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, {});
};