Fixed /extracts HTTP method.
This commit is contained in:
		
							parent
							
								
									1c59ed5bb6
								
							
						
					
					
						commit
						cefad9a48a
					
				| 
						 | 
					@ -15,7 +15,7 @@ void startServer() {
 | 
				
			||||||
	config.port = 8100;
 | 
						config.port = 8100;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	PathDelegatingHandler handler = new PathDelegatingHandler();
 | 
						PathDelegatingHandler handler = new PathDelegatingHandler();
 | 
				
			||||||
	handler.addMapping(Method.GET, "/extracts", &handleExtract);
 | 
						handler.addMapping(Method.POST, "/extracts", &handleExtract);
 | 
				
			||||||
	handler.addMapping(Method.GET, "/extracts/{extractId}", &getExtract);
 | 
						handler.addMapping(Method.GET, "/extracts/{extractId}", &getExtract);
 | 
				
			||||||
	handler.addMapping(Method.POST, "/item-reports", &handleItemReport);
 | 
						handler.addMapping(Method.POST, "/item-reports", &handleItemReport);
 | 
				
			||||||
	handler.addMapping(Method.GET, "/item-reports", &getItemReports);
 | 
						handler.addMapping(Method.GET, "/item-reports", &getItemReports);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue