1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/mipilin synced 2025-05-10 15:33:04 +00:00

i dont really know what i added

Signed-off-by: roxwize <rae@roxwize.xyz>
This commit is contained in:
Rae 5e 2024-11-17 14:16:27 -05:00
parent e3c09d7f0d
commit 7b563f5c31
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
24 changed files with 797 additions and 151 deletions

View file

@ -5,6 +5,8 @@ import { NodePgDatabase } from "drizzle-orm/node-postgres";
import { profiles, users } from "../db/schema.js";
import { eq } from "drizzle-orm";
//! TEMP Also not sanitized like at all
//! Also make sure user isnt logged in before doing this
export default function(app: Express, db: NodePgDatabase) {
app.get("/register", (req, res) => {
if (req.session["loggedIn"]) {