[PR #308] [CLOSED] add option hostname to create alias API endpoint #597

Closed
opened 2026-03-01 17:48:20 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anonaddy/anonaddy/pull/308
Author: @thorpelawrence
Created: 6/21/2022
Status: Closed

Base: masterHead: alias-hostname-option


📝 Commits (2)

  • 28678e4 add option hostname to create alias API endpoint
  • 12b2cd5 fix: always prepending .

📊 Changes

5 files changed (+125 additions, -9 deletions)

View changed files

📝 app/Http/Controllers/Api/AliasController.php (+23 -4)
📝 app/Http/Requests/StoreAliasRequest.php (+2 -1)
📝 composer.json (+1 -0)
📝 composer.lock (+97 -2)
📝 config/version.yml (+2 -2)

📄 Description

Hey there,

Thanks for all the work on this very helpful service.

I've attempted (first time using PHP so might have missed some things, mainly having trouble with the PHP and composer installed in Codespaces) to add a new hostname field to the POST api/v1/aliases endpoint. The idea being that the main part of the domain name can be prepended to the alias (e.g. anonaddy.zxcvbn123@uname.anonaddy.me).

The goal I had in mind is to use this with the Bitwarden extension to automatically include the website name in the alias if desired. Example of how it's done in their extension.

PS: are there any steps for contributing that I might have missed, or is it just a case of following the SELF-HOSTING.md file mainly?


🔄 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/anonaddy/anonaddy/pull/308 **Author:** [@thorpelawrence](https://github.com/thorpelawrence) **Created:** 6/21/2022 **Status:** ❌ Closed **Base:** `master` ← **Head:** `alias-hostname-option` --- ### 📝 Commits (2) - [`28678e4`](https://github.com/anonaddy/anonaddy/commit/28678e407a8cf090cb53f05f96cad26d326ee772) add option `hostname` to create alias API endpoint - [`12b2cd5`](https://github.com/anonaddy/anonaddy/commit/12b2cd5ec5167d31740c63af79ff8c39ccf4c48e) fix: always prepending `.` ### 📊 Changes **5 files changed** (+125 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `app/Http/Controllers/Api/AliasController.php` (+23 -4) 📝 `app/Http/Requests/StoreAliasRequest.php` (+2 -1) 📝 `composer.json` (+1 -0) 📝 `composer.lock` (+97 -2) 📝 `config/version.yml` (+2 -2) </details> ### 📄 Description Hey there, Thanks for all the work on this very helpful service. I've attempted (first time using PHP so might have missed some things, mainly having trouble with the PHP and composer installed in Codespaces) to add a new `hostname` field to the `POST api/v1/aliases` endpoint. The idea being that the main part of the domain name can be prepended to the alias (e.g. `anonaddy.zxcvbn123@uname.anonaddy.me`). The goal I had in mind is to use this with the Bitwarden extension to automatically include the website name in the alias if desired. [Example of how it's done in their extension](https://github.com/bitwarden/clients/blob/da5e4a57d026e0d09356ad3405e08fb140462fd7/libs/common/src/services/usernameGeneration.service.ts#L187). PS: are there any steps for contributing that I might have missed, or is it just a case of following the `SELF-HOSTING.md` file mainly? --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 17:48:20 +03:00
Sign in to join this conversation.
No labels
bug
pull-request
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/anonaddy#597
No description provided.