Skip to content

Commit

Permalink
Updated App.java
Browse files Browse the repository at this point in the history
  • Loading branch information
alina tarasova committed Mar 16, 2024
1 parent ae0fe75 commit c2b2782
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/hexlet/code/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public static Javalin getApp() throws IOException, SQLException {
app.get(NamedRoutes.urlPath("{id}"), UrlsController::show);
app.post(NamedRoutes.urlChecksPath("{id}"), UrlCheckController::createCheck);
app.get(NamedRoutes.urlChecksPath("{id}"), UrlsController::show);
app.delete(NamedRoutes.urlPath("{id}"), UrlsController::deleteById);

app.exception(Exception.class, (endpoint, ctx) -> {
ctx.status(404);
Expand Down

0 comments on commit c2b2782

Please sign in to comment.