diff --git a/src/endpoints/fileServer.ts b/src/endpoints/fileServer.ts new file mode 100644 index 0000000..babcb02 --- /dev/null +++ b/src/endpoints/fileServer.ts @@ -0,0 +1,14 @@ +import { ServerRoute } from "@hapi/hapi"; + +const route: ServerRoute = { + method: `GET`, path: `/static/{path*}`, + options: {}, + handler: { + directory: { + path: `.`, + redirectToSlash: true, + index: true, + }, + }, +}; +export default route; \ No newline at end of file