package com.atm.server;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HomeController {
    @RequestMapping(value = "/")
    public String greeting(){
        return " hi ";
    }
    @GetMapping(value ="/{name}")
    public String greetingwithname(@PathVariable String name ){
 return String.format(" hello %s to our SpringBoot app ", name ) ;
    }

}
