ddc90db530
* - Refactored the .js files to .ts files - Added typing - Used 'WrapHandler' util instead of specific middleware in plugin - Added additional PUT method to the /mailchimp/subscribe endpoint. - Updated documentation where relevant. * Added changeset * Updated yarn.lock * Used camelcase for method args in services/mailchimp.ts --------- Co-authored-by: Tom Rupke <tom@adapptive.nl> Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
11 lines
202 B
TypeScript
11 lines
202 B
TypeScript
import { Router } from "express"
|
|
import routes from "./routes"
|
|
|
|
export default function (rootDirectory: string): Router | Router[] {
|
|
const app = Router()
|
|
|
|
routes(app, rootDirectory)
|
|
|
|
return app
|
|
}
|