Skip to content

Commit

Permalink
fix: add updatePenalties() to EndpointProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanGerlek committed Nov 25, 2024
1 parent 13ebe86 commit 33829fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/edu/byu/cs/server/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private int setupEndpoints(int port) {
post("/courseIds", provider.updateCourseIdsPost());
get("/courseIds", provider.updateCourseIdsUsingCanvasGet());

post("/penalties", updatePenalties);
post("/penalties", provider.updatePenalties());
});
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public interface EndpointProvider {
Route updateBannerMessage();
Route updateCourseIdsPost();
Route updateCourseIdsUsingCanvasGet();
Route updatePenalties();

// SubmissionController

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ public Route updateCourseIdsUsingCanvasGet() {
return ConfigController.updateCourseIdsUsingCanvasGet;
}

@Override
public Route updatePenalties() {
return ConfigController.updatePenalties;
}

// SubmissionController

@Override
Expand Down

0 comments on commit 33829fa

Please sign in to comment.