-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3199 from CSCfi/extended-logging2
Extended logging 2
- Loading branch information
Showing
18 changed files
with
201 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
(ns rems.api.email | ||
(:require [compojure.api.sweet :refer :all] | ||
[rems.api.util] ; required for route :roles | ||
[rems.api.util :refer [extended-logging]] ; required for route :roles | ||
[rems.email.core :as email] | ||
[ring.util.http-response :refer :all])) | ||
|
||
(def email-api | ||
(context "/email" [] | ||
:tags ["email"] | ||
|
||
(POST "/send-reminders" [] | ||
(POST "/send-reminders" request | ||
:summary "Send all reminders." | ||
:roles #{:api-key} | ||
(extended-logging request) | ||
(email/generate-handler-reminder-emails!) | ||
(email/generate-reviewer-reminder-emails!) | ||
(ok "OK")) | ||
|
||
(POST "/send-handler-reminder" [] | ||
(POST "/send-handler-reminder" request | ||
:summary "Send reminders about open applications to all handlers." | ||
:roles #{:api-key} | ||
(extended-logging request) | ||
(email/generate-handler-reminder-emails!) | ||
(ok "OK")) | ||
|
||
(POST "/send-reviewer-reminder" [] | ||
(POST "/send-reviewer-reminder" request | ||
:summary "Send reminders about applications pending review." | ||
:roles #{:api-key} | ||
(extended-logging request) | ||
(email/generate-reviewer-reminder-emails!) | ||
(ok "OK")))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.