Releases: wanjas/hapi-filesystem-router
Releases · wanjas/hapi-filesystem-router
v0.3.0
v0.2.6
v0.2.5
v0.2.4
Improved typing. Use FSRM
or generic RouteModule
const route: FSRM<{
params: { id: string };
payload: {
a1: string;
a2: number;
};
user: { email: string; id: string };
query: { q: string };
}> = {
handler: async (request, h) => {
const {
credentials: {
app,
scope,
user: { email, id },
},
} = request.auth;
const {
payload: { a1, a2 },
} = request;
};