Skip to content

Releases: wanjas/hapi-filesystem-router

v0.3.0

28 Jul 07:48
Compare
Choose a tag to compare

Windows support

v0.2.6

04 Feb 09:37
Compare
Choose a tag to compare

Stricter types

v0.2.5

04 Feb 08:12
Compare
Choose a tag to compare

Update example; Re-export FSRM

v0.2.4

04 Feb 08:06
Compare
Choose a tag to compare

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

v0.2.1

27 Jan 03:53
Compare
Choose a tag to compare
  • Fix: Broken ignore of non-method files in the routes directory tree.
  • Explicitly load [method].js files without warning