[PR #630] [MERGED] feat: support admin api bind address to user #666

Closed
opened 2026-02-26 21:32:18 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/630
Author: @dreamhunter2333
Created: 4/12/2025
Status: Merged
Merged: 4/12/2025
Merged by: @dreamhunter2333

Base: mainHead: feature/dev


📝 Commits (1)

  • 264f5d6 feat: support admin api bind address to user

📊 Changes

4 files changed (+22 additions, -16 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 worker/src/admin_api/admin_user_api.ts (+6 -15)
📝 worker/src/admin_api/index.ts (+1 -0)
📝 worker/src/user_api/bind_address.ts (+14 -1)

📄 Description

User description

#628


PR Type

Enhancement


Description

  • Added API endpoint to bind address to user.

  • Refactored address binding logic into a separate module.

  • Updated existing API to use the new module.

  • Updated changelog to reflect new API addition.


Changes walkthrough 📝

Relevant files
Enhancement
admin_user_api.ts
Add and refactor address binding methods                                 

worker/src/admin_api/admin_user_api.ts

  • Added bindAddress method to bind address to user.
  • Refactored getBindedAddresses to use new module.
  • +6/-15   
    index.ts
    Add route for binding address to user                                       

    worker/src/admin_api/index.ts

    • Added new POST route for binding address to user.
    +1/-0     
    bind_address.ts
    Refactor address binding logic into module                             

    worker/src/user_api/bind_address.ts

  • Refactored address binding logic into UserBindAddressModule.
  • Added bindByID and getBindedAddressesById methods.
  • +14/-1   
    Documentation
    CHANGELOG.md
    Update changelog for new admin API                                             

    CHANGELOG.md

    • Updated changelog to include new admin API for binding address.
    +1/-0     

    Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more information.

  • 🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

    ## 📋 Pull Request Information **Original PR:** https://github.com/dreamhunter2333/cloudflare_temp_email/pull/630 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 4/12/2025 **Status:** ✅ Merged **Merged:** 4/12/2025 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/dev` --- ### 📝 Commits (1) - [`264f5d6`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/264f5d621e5bbde1c2919bd3e5bd4960f7ff1836) feat: support admin api bind address to user ### 📊 Changes **4 files changed** (+22 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `worker/src/admin_api/admin_user_api.ts` (+6 -15) 📝 `worker/src/admin_api/index.ts` (+1 -0) 📝 `worker/src/user_api/bind_address.ts` (+14 -1) </details> ### 📄 Description ### **User description** #628 ___ ### **PR Type** Enhancement ___ ### **Description** - Added API endpoint to bind address to user. - Refactored address binding logic into a separate module. - Updated existing API to use the new module. - Updated changelog to reflect new API addition. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>admin_user_api.ts</strong><dd><code>Add and refactor address binding methods</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/admin_api/admin_user_api.ts <li>Added <code>bindAddress</code> method to bind address to user.<br> <li> Refactored <code>getBindedAddresses</code> to use new module. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/630/files#diff-2843fd3d54aa9aa8054d2530e84a06de3068c31fd5c7d5246db5d2a4234a6196">+6/-15</a>&nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>index.ts</strong><dd><code>Add route for binding address to user</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/admin_api/index.ts - Added new POST route for binding address to user. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/630/files#diff-b470c4c47ce4a700cd8aac644d07d8a747d439bb6d69e9392a198b3a931fe2e7">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>bind_address.ts</strong><dd><code>Refactor address binding logic into module</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/user_api/bind_address.ts <li>Refactored address binding logic into <code>UserBindAddressModule</code>.<br> <li> Added <code>bindByID</code> and <code>getBindedAddressesById</code> methods. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/630/files#diff-ada3e8ad268246f0c99c97065551303c02fded466c73a4f525f6206cb49bdebf">+14/-1</a>&nbsp; &nbsp; </td> </tr> </table></td></tr><tr><td><strong>Documentation</strong></td><td><table> <tr> <td> <details> <summary><strong>CHANGELOG.md</strong><dd><code>Update changelog for new admin API</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> CHANGELOG.md - Updated changelog to include new admin API for binding address. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/630/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> ___ > <details> <summary> Need help?</summary><li>Type <code>/help how to ...</code> in the comments thread for any questions about PR-Agent usage.</li><li>Check out the <a href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a> for more information.</li></details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
    kerem 2026-02-26 21:32:18 +03:00
    Sign in to join this conversation.
    No milestone
    No project
    No assignees
    1 participant
    Notifications
    Due date
    The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

    No due date set.

    Dependencies

    No dependencies set.

    Reference
    starred/cloudflare_temp_email#666
    No description provided.