amber-backend/pb_hooks/settings.pb.js

7 lines
423 B
JavaScript
Raw Normal View History

/// Pretty URL for the account settings editor: /settings → the static page.
/// The page itself (pb_public/settings.html) is a login → decrypt → edit →
/// re-encrypt flow for the client-encrypted addon_config; everything happens in
/// the browser against the normal collection API, so there's no server logic
/// here beyond this redirect.
routerAdd("GET", "/settings", (e) => e.redirect(302, "/settings.html"))