gitfoss-fork-fork | b67389451ce70a46d2d07eb6f119693f966c7057 | 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, {});
};