nest_scaffold/src/config/app.routes.ts
2023-02-24 15:25:06 +07:00

24 lines
411 B
TypeScript

/**
* Application routes with its version
* https://github.com/Sairyss/backend-best-practices#api-versioning
*/
// Root
const usersRoot = 'users';
const walletsRoot = 'wallets';
// Api Versions
const v1 = 'v1';
export const routesV1 = {
version: v1,
user: {
root: usersRoot,
delete: `api/${usersRoot}/:id`,
},
wallet: {
root: walletsRoot,
delete: `api/${walletsRoot}/:id`,
},
};