Allow backslashes in trailing API path components

To make us more tolerant of proxies that "helpfully" decodeuricomponent for us (looking at you Azure)
This commit is contained in:
Jeremy Ruston 2024-02-21 17:54:56 +00:00
parent 6503fb4a04
commit b8c1c6c8de
7 changed files with 7 additions and 7 deletions

View File

@ -16,7 +16,7 @@ NOTE: Urls currently include the recipe name twice. This is temporary to minimis
exports.method = "DELETE";
exports.path = /^\/wiki\/([^\/]+)\/bags\/([^\/]+)\/tiddlers\/([^\/]+)$/;
exports.path = /^\/wiki\/([^\/]+)\/bags\/([^\/]+)\/tiddlers\/(.+)$/;
exports.handler = function(request,response,state) {
// Get the parameters

View File

@ -16,7 +16,7 @@ NOTE: Urls currently include the bag name twice. This is temporary to minimise t
exports.method = "GET";
exports.path = /^\/wiki\/([^\/]+)\/bags\/([^\/]+)\/tiddlers\/([^\/]+)$/;
exports.path = /^\/wiki\/([^\/]+)\/bags\/([^\/]+)\/tiddlers\/(.+)$/;
exports.handler = function(request,response,state) {
// Get the parameters

View File

@ -16,7 +16,7 @@ NOTE: Urls currently include the bag name twice. This is temporary to minimise t
exports.method = "GET";
exports.path = /^\/wiki\/([^\/]+)\/bags\/([^\/]+)$/;
exports.path = /^\/wiki\/([^\/]+)\/bags\/(.+)$/;
exports.handler = function(request,response,state) {
// Get the parameters

View File

@ -16,7 +16,7 @@ NOTE: Urls currently include the recipe name twice. This is temporary to minimis
exports.method = "GET";
exports.path = /^\/wiki\/([^\/]+)\/recipes\/([^\/]+)\/tiddlers\/([^\/]+)$/;
exports.path = /^\/wiki\/([^\/]+)\/recipes\/([^\/]+)\/tiddlers\/(.+)$/;
exports.handler = function(request,response,state) {
// Get the parameters

View File

@ -16,7 +16,7 @@ NOTE: Urls currently include the bag name twice. This is temporary to minimise t
exports.method = "PUT";
exports.path = /^\/wiki\/([^\/]+)\/bags\/([^\/]+)$/;
exports.path = /^\/wiki\/([^\/]+)\/bags\/(.+)$/;
exports.handler = function(request,response,state) {
// Get the parameters

View File

@ -16,7 +16,7 @@ NOTE: Urls currently include the recipe name twice. This is temporary to minimis
exports.method = "PUT";
exports.path = /^\/wiki\/([^\/]+)\/recipes\/([^\/]+)\/tiddlers\/([^\/]+)$/;
exports.path = /^\/wiki\/([^\/]+)\/recipes\/([^\/]+)\/tiddlers\/(.+)$/;
exports.handler = function(request,response,state) {
// Get the parameters

View File

@ -16,7 +16,7 @@ NOTE: Urls currently include the recipe name twice. This is temporary to minimis
exports.method = "PUT";
exports.path = /^\/wiki\/([^\/]+)\/recipes\/([^\/]+)$/;
exports.path = /^\/wiki\/([^\/]+)\/recipes\/(.+)$/;
exports.handler = function(request,response,state) {
// Get the parameters