mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-05-09 08:25:29 +02:00
[PR #111] [MERGED] Accept optional note in POST /api/voucher and include note in GET /api/vouchers #122
Labels
No labels
bug
enhancement
pull-request
question
question
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/unifi-voucher-site#122
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/glenndehaan/unifi-voucher-site/pull/111
Author: @nickelblack619
Created: 12/28/2025
Status: ✅ Merged
Merged: 12/30/2025
Merged by: @glenndehaan
Base:
master← Head:api-note📝 Commits (6)
e6a5d56Add note input sanitization for voucher creationf1901b7Add notes utility to API GET vouchers response6cfae61Update api.jsa61be44Revert "Update api.js"122d2aeRemove sanitizeea65b34Ensure note field is always present within vouchers api call. Cleanup older comments. Simplify code. Implement separator check. Updated README.md📊 Changes
2 files changed (+28 additions, -1 deletions)
View changed files
📝
README.md(+11 -0)📝
controllers/api.js(+17 -1)📄 Description
What changed
POST /api/voucher
note(must be a string). If provided:||;;||removed),<note>||;;||api||;;||local||;;||(passed as the vouchernameto UniFi viaunifi.create).noteis omitted, behavior remains unchanged.noteis present but not a string, the endpoint returns400.GET /api/vouchers
note, parsed from the vouchernameusingutils/notes(string ornull).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.