Updates
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = grabUserDSQLAPIPath;
|
||||
// import grabDbNames from "../../grab-db-names";
|
||||
function grabUserDSQLAPIPath({ apiVersion, paradigm, action, database, userID, }) {
|
||||
const finalAPIVersion = process.env.DSQL_API_VERSION || apiVersion || "v1";
|
||||
const finalParadigm = paradigm || "auth";
|
||||
const finalAction = action || "login";
|
||||
// const { dbFullName } = grabDbNames({ dbName: database });
|
||||
const finalDatabase = database || process.env.DSQL_DB_NAME || "datasquirel";
|
||||
let finalPath = `/api/${finalAPIVersion}/users/${finalParadigm}/${finalDatabase}`;
|
||||
switch (paradigm) {
|
||||
|
||||
Reference in New Issue
Block a user