This commit is contained in:
undefined committed 2020-08-19 21:28:32 +08:00
1 parent ce79bfab8b
commit 6b92b96225
4 files changed
+40 -2

No files matched your search

+1
View File
@@ -78,6 +78,7 @@ async function get(ctx: Context) {
async function post(ctx: Context) {
const {
host, port, name, username, password,
// @ts-expect-error
} = ctx.request.body;
let mongourl = 'mongodb://';
if (username) mongourl += `${username}:${password}@`;