Structure upgrade: change nodemailer to nodemailers, and rename API endpoints
[ndcode_site.git] / api / nodemailers / set.json.jst
similarity index 93%
rename from api/nodemailer/set.json.jst
rename to api/nodemailers/set.json.jst
index 623c002..808fe5b 100644 (file)
@@ -10,7 +10,7 @@ return async env => {
     // env
     env,
     // handler
-    async nodemailer => {
+    async nodemailers => {
       // do not bother trying to coerce and/or validate
       // too complex and nested (do it when we have an automated routine)
 
@@ -25,7 +25,7 @@ return async env => {
         if (!await account.get_json('administrator'))
           throw new Problem('Unauthorized', 'Not administrator.', 401)
 
-        root.set_json('nodemailer', nodemailer)
+        root.set_json('nodemailers', nodemailers)
         await transaction.commit()
       }
       catch (error) {