Add endpoint for serving site files

This commit is contained in:
Oliver Akins 2022-08-09 19:09:36 -06:00
parent 29eb4cc933
commit eb518341c8
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99

View file

@ -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;