mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 19:21:04 +01:00
feat: stub code for v3 chats api
This commit is contained in:
49
src/controllers/write/chats.js
Normal file
49
src/controllers/write/chats.js
Normal file
@@ -0,0 +1,49 @@
|
||||
/* eslint-disable */
|
||||
'use strict';
|
||||
|
||||
const api = require('../../api');
|
||||
|
||||
const helpers = require('../helpers');
|
||||
|
||||
const Chats = module.exports;
|
||||
|
||||
Chats.list = async (req, res) => {
|
||||
// ...
|
||||
};
|
||||
|
||||
Chats.create = async (req, res) => {
|
||||
// ...
|
||||
};
|
||||
|
||||
Chats.exists = async (req, res) => {
|
||||
helpers.formatApiResponse(200, res);
|
||||
};
|
||||
|
||||
Chats.get = async (req, res) => {
|
||||
// ...
|
||||
};
|
||||
|
||||
Chats.post = async (req, res) => {
|
||||
// ...
|
||||
};
|
||||
|
||||
Chats.users = async (req, res) => {
|
||||
// ...
|
||||
};
|
||||
|
||||
Chats.invite = async (req, res) => {
|
||||
// ...
|
||||
};
|
||||
|
||||
Chats.kick = async (req, res) => {
|
||||
// ...
|
||||
};
|
||||
|
||||
Chats.message = {};
|
||||
Chats.messages.edit = async (req, res) => {
|
||||
// ...
|
||||
};
|
||||
|
||||
Chats.messages.delete = async (req, res) => {
|
||||
// ...
|
||||
};
|
||||
Reference in New Issue
Block a user