Base api works

This commit is contained in:
Przemek Dragańczuk
2020-02-13 23:52:33 +01:00
commit d80024c494
21 changed files with 571 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
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);
}
}