Cleanup and tidy stuff
This commit is contained in:
parent
57cffab1e8
commit
d0a6025b9b
3 changed files with 7 additions and 43 deletions
|
|
@ -1,7 +1,7 @@
|
|||
export const color = {
|
||||
red: '\x1b[31m',
|
||||
green: '\x1b[32m',
|
||||
yellow: '\x1b[33m',
|
||||
blue: '\x1b[34m',
|
||||
reset: '\x1b[0m',
|
||||
};
|
||||
// export const color = {
|
||||
// red: '\x1b[31m',
|
||||
// green: '\x1b[32m',
|
||||
// yellow: '\x1b[33m',
|
||||
// blue: '\x1b[34m',
|
||||
// reset: '\x1b[0m',
|
||||
// };
|
||||
|
|
@ -8,24 +8,6 @@ export const ChatReq = Type.Object({
|
|||
|
||||
export type ChatReq = Static<typeof ChatReq>;
|
||||
|
||||
// const route: FastifyPluginAsync = async (fastify): Promise<void> => {
|
||||
// fastify.post<{ Body: ChatReq }>(
|
||||
// '/api/chat/broadcast',
|
||||
// {
|
||||
// schema: {
|
||||
// body: ChatReq,
|
||||
// hide: true,
|
||||
// },
|
||||
// config: { requireAuth: false },
|
||||
// },
|
||||
// async function(req, res) {
|
||||
// // broadcast(this, { command: '', destination: '', user: 'CMwaLeSever!!', text: req.body.message, SenderWindowID: 'server' });
|
||||
// void res;
|
||||
// },
|
||||
// );
|
||||
// };
|
||||
// export default route;
|
||||
|
||||
const route: FastifyPluginAsync = async (fastify): Promise<void> => {
|
||||
fastify.post<{ Body: ChatReq }>('/broadcastNextGame', {
|
||||
schema: {
|
||||
|
|
|
|||
|
|
@ -8,24 +8,6 @@ export const ChatReq = Type.Object({
|
|||
|
||||
export type ChatReq = Static<typeof ChatReq>;
|
||||
|
||||
// const route: FastifyPluginAsync = async (fastify): Promise<void> => {
|
||||
// fastify.post<{ Body: ChatReq }>(
|
||||
// '/api/chat/broadcast',
|
||||
// {
|
||||
// schema: {
|
||||
// body: ChatReq,
|
||||
// hide: true,
|
||||
// },
|
||||
// config: { requireAuth: false },
|
||||
// },
|
||||
// async function(req, res) {
|
||||
// // broadcast(this, { command: '', destination: '', user: 'CMwaLeSever!!', text: req.body.message, SenderWindowID: 'server' });
|
||||
// void res;
|
||||
// },
|
||||
// );
|
||||
// };
|
||||
// export default route;
|
||||
|
||||
const route: FastifyPluginAsync = async (fastify): Promise<void> => {
|
||||
fastify.post<{ Body: ChatReq }>('/broadcastTourStatus', {
|
||||
schema: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue