Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F996460
account.routes.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
843 B
Referenced Files
None
Subscribers
None
account.routes.ts
View Options
import
Router
from
"@koa/router"
;
import
{
Middlewares
}
from
"sealious"
;
import
finalizePasswordReset
from
"./finalize-password-reset"
;
import
confirmPasswordReset
from
"./confirm-password-reset"
;
import
finalizeRegistrationIntent
from
"./finalize-registration-intent"
;
import
createRouter
from
"./create/create.routes"
;
import
{
confirmRegistrationRouter
}
from
"./confirm-registration-email/confirm-registration-email.routes"
;
export
const
accountsRouter
=
(
router
:
Router
)
:
void
=>
{
router
.
post
(
"/account/finalize-registration-intent"
,
Middlewares
.
parseBody
,
finalizeRegistrationIntent
);
router
.
post
(
"/account/finalize-password-reset"
,
Middlewares
.
parseBody
,
finalizePasswordReset
);
router
.
get
(
"/account/confirm-password-reset"
,
confirmPasswordReset
);
createRouter
(
router
);
confirmRegistrationRouter
(
router
);
};
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Tue, Dec 24, 14:04 (12 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
557269
Default Alt Text
account.routes.ts (843 B)
Attached To
Mode
rREWRITE Configurable rewriter
Attached
Detach File
Event Timeline
Log In to Comment