Base api works
This commit is contained in:
12
src/main/java/tk/draganczuk/url/App.java
Normal file
12
src/main/java/tk/draganczuk/url/App.java
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user