Make public settings endpoint accessible without authentication #23
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Public/noodlenook!23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "copilot/update-category-dropdown-visibility"
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?
The
show_sort_dropdownadmin setting only affected authenticated users because the/api/settings/public/:keyendpoint required authentication. Non-logged-in users viewing public pages couldn't fetch the setting, causing the sort dropdown to always display.Changes
Backend (
routes/settings.js)authenticateTokenmiddleware from/public/:keyendpointFrontend (
utils/api.js)publicApiaxios instance without auth interceptorsettings.getPublic()throughpublicApiDocumentation (
pages/SettingsPage.jsx)Before/After
Admins can now control sort dropdown visibility for all users including non-logged-in visitors.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.