@remnawave/backend-contract 0.0.6 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ export const USERS_CONTROLLER = 'users' as const;
2
2
 
3
3
  export const USERS_ROUTES = {
4
4
  CREATE: '',
5
- GET_BY_UUID: '/:uuid',
5
+ GET_BY_UUID: '',
6
6
  GET_BY_SHORT_UUID: 'short-uuid/:shortUuid',
7
7
  GET_BY_SUBSCRIPTION_UUID: 'sub-uuid/:subscriptionUuid',
8
8
  GET_ALL: '',
package/api/routes.ts CHANGED
@@ -41,7 +41,7 @@ export const REST_API = {
41
41
  USERS: {
42
42
  CREATE: `${ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.CREATE}`,
43
43
  GET_BY_UUID: (uuid: string) =>
44
- `${ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET_BY_UUID}/${uuid}`,
44
+ `${ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET_BY_UUID}${uuid}`,
45
45
  GET_BY_SHORT_UUID: (shortUuid: string) =>
46
46
  `${ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET_BY_SHORT_UUID}/${shortUuid}`,
47
47
  GET_BY_SUBSCRIPTION_UUID: (subscriptionUuid: string) =>
@@ -4,7 +4,7 @@ exports.USERS_ROUTES = exports.USERS_CONTROLLER = void 0;
4
4
  exports.USERS_CONTROLLER = 'users';
5
5
  exports.USERS_ROUTES = {
6
6
  CREATE: '',
7
- GET_BY_UUID: '/:uuid',
7
+ GET_BY_UUID: '',
8
8
  GET_BY_SHORT_UUID: 'short-uuid/:shortUuid',
9
9
  GET_BY_SUBSCRIPTION_UUID: 'sub-uuid/:subscriptionUuid',
10
10
  GET_ALL: '',
@@ -68,7 +68,7 @@ exports.REST_API = {
68
68
  },
69
69
  USERS: {
70
70
  CREATE: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.CREATE}`,
71
- GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET_BY_UUID}/${uuid}`,
71
+ GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET_BY_UUID}${uuid}`,
72
72
  GET_BY_SHORT_UUID: (shortUuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET_BY_SHORT_UUID}/${shortUuid}`,
73
73
  GET_BY_SUBSCRIPTION_UUID: (subscriptionUuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET_BY_SUBSCRIPTION_UUID}/${subscriptionUuid}`,
74
74
  GET_ALL: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET_ALL}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "A contract library for Remnawave",
5
5
  "main": "index.js",
6
6
  "scripts": {