diff options
Diffstat (limited to 'src/server/api/endpoints/notifications')
| -rw-r--r-- | src/server/api/endpoints/notifications/create.ts | 2 | ||||
| -rw-r--r-- | src/server/api/endpoints/notifications/mark-all-as-read.ts | 4 | ||||
| -rw-r--r-- | src/server/api/endpoints/notifications/read.ts | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/server/api/endpoints/notifications/create.ts b/src/server/api/endpoints/notifications/create.ts index 6267699e90..8003c497ee 100644 --- a/src/server/api/endpoints/notifications/create.ts +++ b/src/server/api/endpoints/notifications/create.ts @@ -1,6 +1,6 @@ import $ from 'cafy'; import define from '../../define'; -import { createNotification } from '../../../../services/create-notification'; +import { createNotification } from '@/services/create-notification'; export const meta = { tags: ['notifications'], diff --git a/src/server/api/endpoints/notifications/mark-all-as-read.ts b/src/server/api/endpoints/notifications/mark-all-as-read.ts index cce54587c7..8d4e512750 100644 --- a/src/server/api/endpoints/notifications/mark-all-as-read.ts +++ b/src/server/api/endpoints/notifications/mark-all-as-read.ts @@ -1,6 +1,6 @@ -import { publishMainStream } from '../../../../services/stream'; +import { publishMainStream } from '@/services/stream'; import define from '../../define'; -import { Notifications } from '../../../../models'; +import { Notifications } from '@/models/index'; export const meta = { tags: ['notifications', 'account'], diff --git a/src/server/api/endpoints/notifications/read.ts b/src/server/api/endpoints/notifications/read.ts index fe8e5ba44f..66bbc4efd7 100644 --- a/src/server/api/endpoints/notifications/read.ts +++ b/src/server/api/endpoints/notifications/read.ts @@ -1,8 +1,8 @@ import $ from 'cafy'; import { ID } from '@/misc/cafy-id'; -import { publishMainStream } from '../../../../services/stream'; +import { publishMainStream } from '@/services/stream'; import define from '../../define'; -import { Notifications } from '../../../../models'; +import { Notifications } from '@/models/index'; import { readNotification } from '../../common/read-notification'; import { ApiError } from '../../error'; |