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