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 = {
|
// export const color = {
|
||||||
red: '\x1b[31m',
|
// red: '\x1b[31m',
|
||||||
green: '\x1b[32m',
|
// green: '\x1b[32m',
|
||||||
yellow: '\x1b[33m',
|
// yellow: '\x1b[33m',
|
||||||
blue: '\x1b[34m',
|
// blue: '\x1b[34m',
|
||||||
reset: '\x1b[0m',
|
// reset: '\x1b[0m',
|
||||||
};
|
// };
|
||||||
|
|
@ -8,24 +8,6 @@ export const ChatReq = Type.Object({
|
||||||
|
|
||||||
export type ChatReq = Static<typeof ChatReq>;
|
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> => {
|
const route: FastifyPluginAsync = async (fastify): Promise<void> => {
|
||||||
fastify.post<{ Body: ChatReq }>('/broadcastNextGame', {
|
fastify.post<{ Body: ChatReq }>('/broadcastNextGame', {
|
||||||
schema: {
|
schema: {
|
||||||
|
|
|
||||||
|
|
@ -8,24 +8,6 @@ export const ChatReq = Type.Object({
|
||||||
|
|
||||||
export type ChatReq = Static<typeof ChatReq>;
|
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> => {
|
const route: FastifyPluginAsync = async (fastify): Promise<void> => {
|
||||||
fastify.post<{ Body: ChatReq }>('/broadcastTourStatus', {
|
fastify.post<{ Body: ChatReq }>('/broadcastTourStatus', {
|
||||||
schema: {
|
schema: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue