package com.lichader.alfred.controller;

import com.lichader.alfred.logic.TrainlineDisruptionRetrievalLogic;
import com.lichader.alfred.metroapi.v3.model.Disruption;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("api/metro")
public class MetroServiceCheckController {

    @Autowired
    private TrainlineDisruptionRetrievalLogic logic;

    @RequestMapping("disruptions")
    @GetMapping
    public List<Disruption> get(){
        return logic.findDisruptions();
    }

}

@@ -158,32 +158,80 @@
 ruption;%0Aimport 
+com.lichader.alfred.servant.MetroAlfred;%0Aimport 
 org.springframew
@@ -272,130 +272,8 @@
 ired
-;%0Aimport org.springframework.web.bind.annotation.GetMapping;%0Aimport org.springframework.web.bind.annotation.RequestMapping
 ;%0Aim
@@ -317,30 +317,17 @@
 otation.
-RestController
+*
 ;%0A%0Aimpor
@@ -503,16 +503,64 @@
 logic;%0A%0A
+    @Autowired%0A    private MetroAlfred alfred;%0A%0A
     @Req
@@ -571,16 +571,24 @@
 Mapping(
+value = 
 %22disrupt
@@ -596,25 +596,37 @@
 ons%22
-)%0A    @GetMapping
+, method = RequestMethod.GET)
 %0A   
@@ -704,10 +704,160 @@
 %0A    %7D%0A%0A
+    @RequestMapping(value = %22disruptions%22, method = RequestMethod.POST)%0A    public void sendMessageToSlack()%7B%0A        alfred.checkDisruption();%0A    %7D%0A
 %7D%0A

Add a new POST endpoint to manually trigger sending message functionality