change method name of masto api
This commit is contained in:
parent
7b9e6a8032
commit
42f9d6eb5a
|
@ -8,7 +8,7 @@ function toLimitToInt(q: any) {
|
||||||
return q
|
return q
|
||||||
}
|
}
|
||||||
|
|
||||||
export function apiNotificationMastodon(router: Router): void {
|
export function apiNotificationsMastodon(router: Router): void {
|
||||||
|
|
||||||
router.get('/v1/notifications', koaBody(), async (ctx) => {
|
router.get('/v1/notifications', koaBody(), async (ctx) => {
|
||||||
const BASE_URL = `${ctx.request.protocol}://${ctx.request.hostname}`;
|
const BASE_URL = `${ctx.request.protocol}://${ctx.request.hostname}`;
|
||||||
|
|
Loading…
Reference in New Issue