mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2025-04-05 10:37:59 +00:00
13 lines
236 B
Java
13 lines
236 B
Java
|
package tk.draganczuk.url;
|
||
|
|
||
|
import static spark.Spark.*;
|
||
|
|
||
|
public class App {
|
||
|
|
||
|
public static void main(String[] args) {
|
||
|
get("/all", Routes::getAll);
|
||
|
post("/new", Routes::addUrl);
|
||
|
get("/:shortUrl", Routes::goToLongUrl);
|
||
|
}
|
||
|
}
|