From dc9155588e38cf29e673deaba8265df32eddb3d1 Mon Sep 17 00:00:00 2001 From: SachinAgrawal Date: Fri, 27 Sep 2019 16:05:20 +0530 Subject: [PATCH] removed unused code --- .../moneytransfer/MoneyTransferAPI.java | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/src/main/java/home/test/restapi/example/moneytransfer/MoneyTransferAPI.java b/src/main/java/home/test/restapi/example/moneytransfer/MoneyTransferAPI.java index 832eb13..37aed5d 100644 --- a/src/main/java/home/test/restapi/example/moneytransfer/MoneyTransferAPI.java +++ b/src/main/java/home/test/restapi/example/moneytransfer/MoneyTransferAPI.java @@ -19,32 +19,12 @@ public class MoneyTransferAPI { - private static void registerHelloWorld() { - - get("/hello", (req, res) -> "Hello, world "); - - post("/hello", (req, res) -> "Hello, world " + req.body()); - - get("/hello/:name", (req, res) -> { - return "Hello, " + req.params(":name"); - }); - - get("/hello/*/last/*", (req, res) -> { - return "Hello, " + req.splat()[1] + " " + req.splat()[0]; - }); - - post("/hello/*/last", (req, res) -> { - return "Hello, " + " " + req.splat()[0]; - }); - } - private static void registerHomePage() { get("/", (rek, res) -> " WIP WIP"); } public static void main(String[] args) { port(1010); - registerHelloWorld(); registerHomePage(); SparkRestfulRouter router = new SparkRestfulRouter(); MoneyTransferInMemoryServiceFactory serviceAbstractFactory = MoneyTransferInMemoryServiceFactory.getInstance();