router.js 433 B

1234567891011121314
  1. // src/router.ts
  2. var METHOD_NAME_ALL = "ALL";
  3. var METHOD_NAME_ALL_LOWERCASE = "all";
  4. var METHODS = ["get", "post", "put", "delete", "options", "patch"];
  5. var MESSAGE_MATCHER_IS_ALREADY_BUILT = "Can not add a route since the matcher is already built.";
  6. var UnsupportedPathError = class extends Error {
  7. };
  8. export {
  9. MESSAGE_MATCHER_IS_ALREADY_BUILT,
  10. METHODS,
  11. METHOD_NAME_ALL,
  12. METHOD_NAME_ALL_LOWERCASE,
  13. UnsupportedPathError
  14. };