Add documentation
This commit is contained in:
@ -1,5 +1,8 @@
|
||||
import mongoose from "mongoose";
|
||||
|
||||
/**
|
||||
* Connect to the database
|
||||
*/
|
||||
export async function connectMongo() {
|
||||
try {
|
||||
await mongoose.connect(process.env.MONGODB_CONNECTION_STRING);
|
||||
|
@ -1,3 +1,9 @@
|
||||
/**
|
||||
* Downloads a file to the users browser
|
||||
*
|
||||
* @param {string} uri The url to the file
|
||||
* @param {string} name The name of the file to be saved
|
||||
*/
|
||||
export function downloadURI(uri, name) {
|
||||
var link = document.createElement("a");
|
||||
link.download = name;
|
||||
|
Reference in New Issue
Block a user