0
0
Fork 0

Add Nightbot command documentation

This commit is contained in:
Oliver-Akins 2023-02-19 21:10:32 -07:00
parent a639e7c1ae
commit 2cdb407c69
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,19 @@
import { ServerRoute } from "@hapi/hapi";
import path from "path";
const route: ServerRoute = {
method: `GET`, path: `/docs/{path*}`,
options: {
files: {
relativeTo: path.join(process.cwd(), `docs`),
},
},
handler: {
directory: {
path: `.`,
index: true,
redirectToSlash: true,
},
},
};
export default route;