Skip to content

Commit e7c946c

Browse files
committed
feat: create stub API endpoints
1 parent e7a5822 commit e7c946c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

backend/src/modules/crossroads/activitypub/activityPub.controller.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
HttpException,
55
HttpStatus,
66
Param,
7+
Post,
78
} from '@nestjs/common';
89
import { 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
}

0 commit comments

Comments
 (0)