Commit abf6d51c by Patryk Czarnik

/hello/time

parent 941c0a5a
package rest;
import java.time.LocalDateTime;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
......@@ -11,4 +13,10 @@ public class Hello {
return "Hello world";
}
@GET
@Path("/time")
public String ktoraGodzina() {
return LocalDateTime.now().toString();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment