# How do I integrate custom script with auth routes?

**URL:** <https://community.auth0.com/t/how-do-i-integrate-custom-script-with-auth-routes/122449>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [December 6, 2023, 3:35pm UTC](https://community.auth0.com/t/how-do-i-integrate-custom-script-with-auth-routes/122449 "2023-12-06T15:35:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lawyeh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lawyeh/32/53080_2.png) [@lawyeh](https://community.auth0.com/u/lawyeh)\
**Post date:** [December 6, 2023, 3:35pm UTC](https://community.auth0.com/t/how-do-i-integrate-custom-script-with-auth-routes/122449/1 "2023-12-06T15:35:10Z")

</div>

I am building a backend with Express.js and Prisma. I can’t seem to find documentation on how to add my middleware to the routes. How do I customize the provided routes from Auth0?

Is it as simple as:  
`authRouter.post(/signup, authController.createUser)`

`app.use('/', authRouter)`

Or do I need to change something in my dashboard?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 12, 2023, 8:21pm UTC](https://community.auth0.com/t/how-do-i-integrate-custom-script-with-auth-routes/122449/3 "2023-12-12T20:21:48Z")

</div>

Hi @lawyeh,

Welcome to the Auth0 Community!

I understand you want to add some functions to an Express API route protected by Auth0.

In [this example](https://auth0.com/docs/quickstart/backend/nodejs/01-authorization), you can see `checkJwt` authorization middleware is used to validate tokens sent to the provided route.

If this doesn’t answer your question, can you provide some additional context?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 26, 2023, 8:21pm UTC](https://community.auth0.com/t/how-do-i-integrate-custom-script-with-auth-routes/122449/4 "2023-12-26T20:21:50Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
