This repository was archived by the owner on Apr 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 88} from "../rest/membership" ;
99import {
1010 Get ,
11- Post ,
11+ Patch ,
1212 Put ,
1313 Delete ,
1414 Controller ,
@@ -55,7 +55,7 @@ export class MembershipController {
5555 res . json ( { deleted : true } ) ;
5656 }
5757
58- @Post ( ":id" )
58+ @Patch ( ":id" )
5959 async patch ( req : Request , res : Response ) {
6060 const userId = res . locals . token . id ;
6161 const membershipId = req . params . id ;
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ import {
2020} from "../rest/organization" ;
2121import {
2222 Get ,
23- Post ,
2423 Put ,
24+ Patch ,
2525 Delete ,
2626 Controller ,
2727 ClassMiddleware
@@ -54,7 +54,7 @@ export class OrganizationController {
5454 res . json ( organization ) ;
5555 }
5656
57- @Post ( ":id" )
57+ @Patch ( ":id" )
5858 async patch ( req : Request , res : Response ) {
5959 const id = req . params . id ;
6060 if ( ! id ) throw new Error ( ErrorCode . MISSING_FIELD ) ;
@@ -83,7 +83,7 @@ export class OrganizationController {
8383 ) ;
8484 }
8585
86- @Post ( ":id/billing" )
86+ @Patch ( ":id/billing" )
8787 async patchBilling ( req : Request , res : Response ) {
8888 await updateOrganizationBillingForUser (
8989 res . locals . token . id ,
@@ -170,7 +170,7 @@ export class OrganizationController {
170170 ) ;
171171 }
172172
173- @Post ( ":id/source/:sourceId" )
173+ @Patch ( ":id/source/:sourceId" )
174174 async patchSource ( req : Request , res : Response ) {
175175 const sourceId = req . params . sourceId ;
176176 if ( ! sourceId ) throw new Error ( ErrorCode . MISSING_FIELD ) ;
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import {
1616import { ErrorCode } from "../interfaces/enum" ;
1717import {
1818 Get ,
19+ Patch ,
1920 Post ,
2021 Put ,
2122 Delete ,
@@ -44,7 +45,7 @@ export class UserController {
4445 res . json ( await getUserFromId ( id , res . locals . token . id ) ) ;
4546 }
4647
47- @Post ( ":id" )
48+ @Patch ( ":id" )
4849 async patch ( req : Request , res : Response ) {
4950 let id = req . params . id ;
5051 if ( id === "me" ) id = res . locals . token . id ;
@@ -112,7 +113,7 @@ export class UserController {
112113 res . json ( await getApiKeyForUser ( res . locals . token . id , id , apiKey ) ) ;
113114 }
114115
115- @Post ( ":id/api-keys/:apiKey" )
116+ @Patch ( ":id/api-keys/:apiKey" )
116117 async patchUserApiKey ( req : Request , res : Response ) {
117118 let id = req . params . id ;
118119 if ( id === "me" ) id = res . locals . token . id ;
You can’t perform that action at this time.
0 commit comments