|
@@ -256,7 +256,7 @@ module.exports = (crowi) => {
|
|
|
* 200:
|
|
* 200:
|
|
|
* description: Succeeded to update access token for slack
|
|
* description: Succeeded to update access token for slack
|
|
|
*/
|
|
*/
|
|
|
- router.put('/access-tokens', async(req, res) => {
|
|
|
|
|
|
|
+ router.put('/access-tokens', loginRequiredStrictly, adminRequired, csrf, async(req, res) => {
|
|
|
// TODO imple generate tokens at GW-5859. The following req.body is temporary.
|
|
// TODO imple generate tokens at GW-5859. The following req.body is temporary.
|
|
|
const { tokenGtoP, tokenPtoG } = req.body;
|
|
const { tokenGtoP, tokenPtoG } = req.body;
|
|
|
try {
|
|
try {
|