Skip to content
Snippets Groups Projects
Commit 3b329fd8 authored by thierry.vuilleum's avatar thierry.vuilleum
Browse files

Add Event service for the log

parent 3b0298c5
No related branches found
No related tags found
No related merge requests found
......@@ -19,12 +19,14 @@ public class http {
private static OrderService orderService;
private static AccountService accountService;
private static StockService stockService;
private static EventService eventService;
private static int idService;
public static void main(String[] args) {
http.orderService = new OrderService("localhost");
http.accountService = new AccountService("localhost");
http.stockService = new StockService("localhost");
http.eventService = new EventService("localhost");
http.idService = 0;
SpringApplication.run(http.class, args);
}
......@@ -94,4 +96,10 @@ public class http {
return null;
}
@RequestMapping("/log")
public Product supplyStock(
@RequestParam(value = "id", defaultValue = "1") int id) {
eventService.log(id);
return null;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment