/** Add trailing slash to all URL paths that need one. So, /hello will become /hello/, for example. This avoids issues with relative URLs breaking when the path is missing a trailing slash (e.g., ). See: https://stackoverflow.com/questions/31111257/relative-links-on-pages-without-trailing-slash */ import type { NextHandler } from 'polka'; import type { KittenRequest, KittenResponse } from '../types/index.ts'; export default function (): (request: KittenRequest, response: KittenResponse, next: NextHandler) => void;