@@ -0,0 +1,659 @@
+package com.nincraft.ninbot.components.admin;%0A%0Aimport lombok.extern.log4j.Log4j2;%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.web.bind.annotation.GetMapping;%0Aimport org.springframework.web.bind.annotation.ResponseBody;%0A%0A@Log4j2%0A@Controller%0Apublic class AdminController %7B%0A    @GetMapping(%22/admin/shutdown%22)%0A    @ResponseBody%0A    public boolean shutdown() %7B%0A        new Thread(() -%3E %7B%0A            try %7B%0A                Thread.sleep(5000);%0A            %7D catch (InterruptedException e) %7B%0A                log.error(%22Couldn't shutdown%22, e);%0A            %7D%0A            System.exit(0);%0A        %7D).start();%0A        return true;%0A    %7D%0A%7D%0A

Add shutdown endpoint