Skip to content

Commit

Permalink
Add auth to endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyford committed Jul 31, 2024
1 parent 4037bd4 commit 29eec02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/rule-manager/app/controllers/RulesController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class RulesController(
}
}

def csvImport() = Action { implicit request =>
def csvImport() = APIAuthAction { implicit request =>
val rules = for {
formData <- request.body.asMultipartFormData.toRight("No form data found in request")
file <- formData.file("file").toRight("No file found in request")
Expand Down

0 comments on commit 29eec02

Please sign in to comment.