mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-06-19 19:13:13 +02:00
Rename /access to /reservation
This commit is contained in:
parent
d4ec5eb497
commit
24529bd0ad
5 changed files with 24 additions and 26 deletions
web/src/app
|
@ -1,6 +1,6 @@
|
|||
import {
|
||||
accountAccessSingleUrl,
|
||||
accountAccessUrl,
|
||||
accountReservationSingleUrl,
|
||||
accountReservationUrl,
|
||||
accountPasswordUrl,
|
||||
accountSettingsUrl,
|
||||
accountSubscriptionSingleUrl,
|
||||
|
@ -229,7 +229,7 @@ class AccountApi {
|
|||
}
|
||||
|
||||
async upsertAccess(topic, everyone) {
|
||||
const url = accountAccessUrl(config.base_url);
|
||||
const url = accountReservationUrl(config.base_url);
|
||||
console.log(`[AccountApi] Upserting user access to topic ${topic}, everyone=${everyone}`);
|
||||
const response = await fetch(url, {
|
||||
method: "POST",
|
||||
|
@ -250,7 +250,7 @@ class AccountApi {
|
|||
}
|
||||
|
||||
async deleteAccess(topic) {
|
||||
const url = accountAccessSingleUrl(config.base_url, topic);
|
||||
const url = accountReservationSingleUrl(config.base_url, topic);
|
||||
console.log(`[AccountApi] Removing topic reservation ${url}`);
|
||||
const response = await fetch(url, {
|
||||
method: "DELETE",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue