Download wp-calypso/client/server/api/index.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 295 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/server/api/index.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/server/api/index.ts
-
curl -L -o index.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/server/api/index.ts
295 Bytes
| import config from '@automattic/calypso-config'; | |
| import express from 'express'; | |
| import signInWithApple from './sign-in-with-apple'; | |
| export default function api() { | |
| const app = express(); | |
| if ( config.isEnabled( 'sign-in-with-apple/redirect' ) ) { | |
| signInWithApple( app ); | |
| } | |
| return app; | |
| } | |