diff --git a/src/models/mastodon/emoji.ts b/src/server/api/mastodon/emoji.ts similarity index 100% rename from src/models/mastodon/emoji.ts rename to src/server/api/mastodon/emoji.ts diff --git a/src/server/api/mastodon.ts b/src/server/api/mastodon/index.ts similarity index 93% rename from src/server/api/mastodon.ts rename to src/server/api/mastodon/index.ts index e08fbc6f57..9e8a6f505f 100644 --- a/src/server/api/mastodon.ts +++ b/src/server/api/mastodon/index.ts @@ -1,11 +1,11 @@ import * as Router from 'koa-router'; -import User from '../../models/user'; +import User from '../../../models/user'; import { toASCII } from 'punycode'; -import config from '../../config'; -import Meta from '../../models/meta'; +import config from '../../../config'; +import Meta from '../../../models/meta'; import { ObjectID } from 'bson'; -import Emoji from '../../models/emoji'; -import { toMastodonEmojis } from '../../models/mastodon/emoji'; +import Emoji from '../../../models/emoji'; +import { toMastodonEmojis } from './emoji'; const pkg = require('../../../package.json'); // Init router