[API] Implement some Emoji APIs
This commit is contained in:
parent
31c3f6abf7
commit
3487ddabea
5 changed files with 117 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
|||
import * as mongo from 'mongodb';
|
||||
import db from '../db/mongodb';
|
||||
|
||||
const Emoji = db.get<IEmoji>('emoji');
|
||||
|
@ -8,6 +9,7 @@ Emoji.createIndex(['name', 'host'], { unique: true });
|
|||
export default Emoji;
|
||||
|
||||
export type IEmoji = {
|
||||
_id: mongo.ObjectID;
|
||||
name: string;
|
||||
host: string;
|
||||
url: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue