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