mirror of
https://github.com/Discreetly/server.git
synced 2026-04-17 03:00:55 -04:00
chore: types and todos
This commit is contained in:
@@ -11,6 +11,7 @@ export function getRoomByID(id: string): RoomI | null {
|
||||
}
|
||||
})
|
||||
.then((room) => {
|
||||
//TODO NEED TO FILTER OUT CLAIMCODE REFERENCES
|
||||
return room;
|
||||
})
|
||||
.catch((err) => console.error(err));
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
import type { Express } from 'express';
|
||||
import { PrismaClient } from '@prisma/client';
|
||||
import { serverConfig } from '../config/serverConfig';
|
||||
import { pp } from '../utils.js';
|
||||
import { getRoomByID } from '../data/db';
|
||||
import { genId } from 'discreetly-interfaces';
|
||||
|
||||
// TODO! Properly handle authentication for admin controls
|
||||
// TODO! Properly handle authentication for admin endpoints
|
||||
// TODO api endpoint that creates new rooms and generates invite codes for them
|
||||
|
||||
export function initEndpoints(app) {
|
||||
export function initEndpoints(app: Express) {
|
||||
const prisma = new PrismaClient();
|
||||
|
||||
app.get(['/', '/api'], (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user