Added option to delete a URL

This commit is contained in:
Przemek Dragańczuk
2020-02-16 16:52:54 +01:00
parent f47afab80b
commit 6d7b065e98
5 changed files with 62 additions and 6 deletions

View File

@@ -36,6 +36,7 @@ public class App {
before("/*", authFilter);
get("/all", Routes::getAll);
post("/new", Routes::addUrl);
delete("/:shortUrl", Routes::delete);
});
get("/:shortUrl", Routes::goToLongUrl);