adding route for sign up and such
This commit is contained in:
@@ -9,7 +9,7 @@ export const collections: { users?: mongoDB.Collection } = {};
|
||||
// Initialize Connection
|
||||
export async function connectToDatabase() {
|
||||
const client: mongoDB.MongoClient = new mongoDB.MongoClient(
|
||||
process.env.DB_CONN_STRING!
|
||||
"mongodb+srv://default:[email protected]/default?retryWrites=true&w=majority"
|
||||
);
|
||||
|
||||
await client.connect();
|
||||
|
||||
Reference in New Issue
Block a user