feat(server): settings and module crud added in

This commit is contained in:
2025-03-04 16:43:45 -06:00
parent 5b9cadb76e
commit 2ad1dcc55b
19 changed files with 701 additions and 14 deletions

View File

@@ -7,18 +7,22 @@ import session from "./routes/session.js";
import getAccess from "./routes/userRoles/getUserRoles.js";
import setAccess from "./routes/userRoles/setUserRoles.js";
import profile from "./routes/user/profileUpdate.js";
import {areRolesIn} from "./utils/roleCheck.js";
const app = new OpenAPIHono();
// run the role check
areRolesIn();
app.route("auth/login", login);
app.route("auth/register", register);
app.route("auth/session", session);
// required to login
/* User area just needs to be logged in to enter here */
app.route("/auth/profileUpdate", profile);
app.route("auth/profileUpdate", profile);
/* will need to increase to make sure the person coming here has the correct permissions */
app.route("/auth/getuseraccess", getAccess);
app.route("/auth/setuseraccess", setAccess);
app.route("auth/getuseraccess", getAccess);
app.route("auth/setuseraccess", setAccess);
export default app;