File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
backend/src/modules/crossroads/activitypub Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 44 HttpException ,
55 HttpStatus ,
66 Param ,
7+ Post ,
78} from '@nestjs/common' ;
89import { ActivityPubService } from './activityPub.service' ;
910
@@ -39,4 +40,30 @@ export class ActivityPubController {
3940 const publicKey = await getPublicKeyOfActor ( id ) ;
4041 return publicKey ;
4142 }
43+
44+ @Get ( '/notes/:id' )
45+ async getNoteById ( @Param ( 'id' ) id : string ) : Promise < unknown > {
46+ console . log ( 'getNoteById' , id ) ;
47+ // TODO
48+ throw new HttpException ( 'Not implemented' , HttpStatus . NOT_IMPLEMENTED ) ;
49+ }
50+
51+ @Get ( '/activities/:id' )
52+ async getActivityById ( @Param ( 'id' ) id : string ) : Promise < unknown > {
53+ console . log ( 'getActivityById' , id ) ;
54+ // TODO
55+ throw new HttpException ( 'Not implemented' , HttpStatus . NOT_IMPLEMENTED ) ;
56+ }
57+
58+ @Get ( '/outbox' )
59+ async getOutbox ( ) : Promise < unknown > {
60+ // TODO
61+ throw new HttpException ( 'Not implemented' , HttpStatus . NOT_IMPLEMENTED ) ;
62+ }
63+
64+ @Post ( '/inbox' )
65+ async postToInbox ( ) : Promise < unknown > {
66+ // TODO
67+ throw new HttpException ( 'Not implemented' , HttpStatus . NOT_IMPLEMENTED ) ;
68+ }
4269}
You can’t perform that action at this time.
0 commit comments