diff --git a/src/main/java/edu/byu/cs/server/Server.java b/src/main/java/edu/byu/cs/server/Server.java index 714ab909..c2deb6be 100644 --- a/src/main/java/edu/byu/cs/server/Server.java +++ b/src/main/java/edu/byu/cs/server/Server.java @@ -106,7 +106,7 @@ private int setupEndpoints(int port) { post("/courseIds", provider.updateCourseIdsPost()); get("/courseIds", provider.updateCourseIdsUsingCanvasGet()); - post("/penalties", updatePenalties); + post("/penalties", provider.updatePenalties()); }); }); }); diff --git a/src/main/java/edu/byu/cs/server/endpointprovider/EndpointProvider.java b/src/main/java/edu/byu/cs/server/endpointprovider/EndpointProvider.java index 0ef17ef1..b89c1d6a 100644 --- a/src/main/java/edu/byu/cs/server/endpointprovider/EndpointProvider.java +++ b/src/main/java/edu/byu/cs/server/endpointprovider/EndpointProvider.java @@ -41,6 +41,7 @@ public interface EndpointProvider { Route updateBannerMessage(); Route updateCourseIdsPost(); Route updateCourseIdsUsingCanvasGet(); + Route updatePenalties(); // SubmissionController diff --git a/src/main/java/edu/byu/cs/server/endpointprovider/EndpointProviderImpl.java b/src/main/java/edu/byu/cs/server/endpointprovider/EndpointProviderImpl.java index 1e4584ee..1ba31d02 100644 --- a/src/main/java/edu/byu/cs/server/endpointprovider/EndpointProviderImpl.java +++ b/src/main/java/edu/byu/cs/server/endpointprovider/EndpointProviderImpl.java @@ -135,6 +135,11 @@ public Route updateCourseIdsUsingCanvasGet() { return ConfigController.updateCourseIdsUsingCanvasGet; } + @Override + public Route updatePenalties() { + return ConfigController.updatePenalties; + } + // SubmissionController @Override