1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 16:45:58 +01:00

Omit trailing slashes in management.js.

This commit is contained in:
Juliusz Chroboczek 2024-05-02 23:07:58 +02:00
parent c1df719c65
commit 0090ae71dd

View file

@ -181,7 +181,7 @@ async function getGroup(group, etag) {
* @param {Object} [values] * @param {Object} [values]
*/ */
async function createGroup(group, values) { async function createGroup(group, values) {
return await createObject(`/galene-api/0/.groups/${group}/`, values); return await createObject(`/galene-api/0/.groups/${group}`, values);
} }
/** /**
@ -191,7 +191,7 @@ async function createGroup(group, values) {
* @param {string} [etag] * @param {string} [etag]
*/ */
async function deleteGroup(group, etag) { async function deleteGroup(group, etag) {
return await deleteObject(`/galene-api/0/.groups/${group}/`, etag); return await deleteObject(`/galene-api/0/.groups/${group}`, etag);
} }
/** /**
@ -204,7 +204,7 @@ async function deleteGroup(group, etag) {
* @param {string} [etag] * @param {string} [etag]
*/ */
async function updateGroup(group, values, etag) { async function updateGroup(group, values, etag) {
return await updateObject(`/galene-api/0/.groups/${group}/`, values); return await updateObject(`/galene-api/0/.groups/${group}`, values);
} }
/** /**
@ -239,7 +239,7 @@ async function getUser(group, user, etag) {
* @param {Object} values * @param {Object} values
*/ */
async function createUser(group, user, values) { async function createUser(group, user, values) {
return await createObject(`/galene-api/0/.groups/${group}/.users/${user}/`, return await createObject(`/galene-api/0/.groups/${group}/.users/${user}`,
values); values);
} }
@ -265,7 +265,7 @@ async function deleteUser(group, user, etag) {
* @param {string} [etag] * @param {string} [etag]
*/ */
async function updateUser(group, user, values, etag) { async function updateUser(group, user, values, etag) {
return await updateObject(`/galene-api/0/.groups/${group}/.users/${user}/`, return await updateObject(`/galene-api/0/.groups/${group}/.users/${user}`,
values, etag); values, etag);
} }