feat: API v2 subversioning (#15135)
* feat: API v2 subversioning * Update app.ts * Added multiple versions to existing controllers * Updated the slots controller * chore: version platform library package with npm package alias * chore: use consts to version * chore: use consts to version * chore: version api for cal provider * chore: remove timezone controller subversion poc * fixup! Merge branch 'main' into feat/api-v2-subversioning --------- Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com> Co-authored-by: Morgan Vernay <morgan@cal.com>
This commit is contained in:
31 files changed
+128
-62
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { AppConfig } from "@/config/type";
|
||||
import { API_VERSIONS_VALUES } from "@/lib/api-versions";
|
||||
import { Roles } from "@/modules/auth/decorators/roles/roles.decorator";
|
||||
import { NextAuthGuard } from "@/modules/auth/guards/next-auth/next-auth.guard";
|
||||
import { OrganizationRolesGuard } from "@/modules/auth/guards/organization-roles/organization-roles.guard";
|
||||
@@ -29,8 +30,8 @@ import { Stripe } from "stripe";
|
||||
import { ApiResponse } from "@calcom/platform-types";
|
||||
|
||||
@Controller({
|
||||
path: "/billing",
|
||||
version: "2",
|
||||
path: "/v2/billing",
|
||||
version: API_VERSIONS_VALUES,
|
||||
})
|
||||
@ApiExcludeController(true)
|
||||
export class BillingController {
|
||||
|
||||
Reference in new issue
Block a user