Skip to content

Commit

Permalink
removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
agrsachin81 committed Sep 27, 2019
1 parent c908116 commit dc91555
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit dc91555

Please sign in to comment.