Download wp-calypso/client/incoming-redirect/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 527 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/incoming-redirect/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/incoming-redirect/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/incoming-redirect/index.js
527 Bytes
| import page from '@automattic/calypso-router'; | |
| import { makeLayout, render as clientRender } from 'calypso/controller'; | |
| import controller from './controller'; | |
| import * as paths from './paths'; | |
| export default function () { | |
| page( | |
| paths.emailManagementTitanExternal( ':mode' ), | |
| controller.emailTitanAddMailboxes, | |
| makeLayout, | |
| clientRender | |
| ); | |
| page( paths.incomingRedirectRoot + '/*', controller.notFound, makeLayout, clientRender ); | |
| page( paths.incomingRedirectRoot, controller.notFound, makeLayout, clientRender ); | |
| } | |