Move account-related APIs down one level into /api/account and the former /api/sign_u...
[ndcode_site.git] / api / account / sign_up / create_account.json.jst
similarity index 95%
rename from api/sign_up/create_account.json.jst
rename to api/account/sign_up/create_account.json.jst
index bb96f5c..85c4ef7 100644 (file)
@@ -8,8 +8,6 @@ return async env => {
   await post_request(
     // env
     env,
-    // endpoint
-    '/api/sign_up/create_account.json',
     // handler
     async (verification_code, details) => {
       // coerce and/or validate
@@ -41,7 +39,7 @@ return async env => {
         if (captcha === undefined || XDate.now() >= captcha.get('expires'))
           throw new Problem(
             'No verification image in session',
-            `Please call the "/api/verification_image.png" endpoint to create a verification image, in same session as the "/api/sign_up/create_account.json" call and less than one hour prior.`,
+            `Please call the "/api/verification_image.png" endpoint to create a verification image, in same session as the "/api/account/sign_up/create_account.json" call and less than one hour prior.`,
             418
           )