Added option to delete a URL
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user