forked from MapComplete/MapComplete
		
	Add summary prefix
This commit is contained in:
		
							parent
							
								
									aae9b90ca2
								
							
						
					
					
						commit
						eac8b85d35
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -201,7 +201,7 @@ const connectionString = "postgresql://user:password@localhost:5444/osm-poi" | |||
| const tcs = new OsmPoiDatabase(connectionString) | ||||
| const server = new Server(2345, [ | ||||
|     { | ||||
|         mustMatch: "status.json", | ||||
|         mustMatch: "summary/status.json", | ||||
|         mimetype: "application/json", | ||||
|         handle: async (path: string) => { | ||||
|             const layers = await tcs.getLayers() | ||||
|  | @ -210,7 +210,7 @@ const server = new Server(2345, [ | |||
|         }, | ||||
|     }, | ||||
|     { | ||||
|         mustMatch: /[a-zA-Z0-9+]+\/[0-9]+\/[0-9]+\/[0-9]+\.json/, | ||||
|         mustMatch: /summary\/[a-zA-Z0-9+]+\/[0-9]+\/[0-9]+\/[0-9]+\.json/, | ||||
|         mimetype: "application/json", // "application/vnd.geo+json",
 | ||||
|         async handle(path) { | ||||
|             console.log("Path is:", path, path.split(".")[0]) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue