diff --git a/services/src/main/java/ch/hepia/http.java b/services/src/main/java/ch/hepia/http.java
index 0c19f8e9af22e6da36e25adce187d2314681ef13..13d8cb0b8afe21d7079f0bc50d521e0eaebf5dfa 100644
--- a/services/src/main/java/ch/hepia/http.java
+++ b/services/src/main/java/ch/hepia/http.java
@@ -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