mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Merge pull request #2419 from boisei0/fix-2418-regex-routes
Fixes the routes described in #2418
This commit is contained in:
		| @@ -88,13 +88,13 @@ module.exports = { | ||||
|             // Locales | ||||
|             var locales = require("./locales"); | ||||
|             locales.init(runtimeAPI); | ||||
|             editorApp.get(/locales\/(.+)\/?$/,locales.get,apiUtil.errorHandler); | ||||
|             editorApp.get(/^\/locales\/(.+)\/?$/,locales.get,apiUtil.errorHandler); | ||||
|  | ||||
|             // Library | ||||
|             var library = require("./library"); | ||||
|             library.init(runtimeAPI); | ||||
|             editorApp.get(/library\/([^\/]+)\/([^\/]+)(?:$|\/(.*))/,needsPermission("library.read"),library.getEntry); | ||||
|             editorApp.post(/library\/([^\/]+)\/([^\/]+)\/(.*)/,needsPermission("library.write"),library.saveEntry); | ||||
|             editorApp.get(/^\/library\/([^\/]+)\/([^\/]+)(?:$|\/(.*))/,needsPermission("library.read"),library.getEntry); | ||||
|             editorApp.post(/^\/library\/([^\/]+)\/([^\/]+)\/(.*)/,needsPermission("library.write"),library.saveEntry); | ||||
|  | ||||
|  | ||||
|             // Credentials | ||||
|   | ||||
		Reference in New Issue
	
	Block a user