mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-17 10:26:39 +00:00
started integrating auth with lucia
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Router } from "express";
|
||||
import gerbil from "./gerbil/gerbil";
|
||||
import pangolin from "./pangolin/pangolin";
|
||||
import global from "./global/global";
|
||||
|
||||
const unauth = Router();
|
||||
|
||||
@@ -11,4 +12,6 @@ unauth.get("/", (_, res) => {
|
||||
unauth.use("/newt", gerbil);
|
||||
unauth.use("/pangolin", pangolin);
|
||||
|
||||
unauth.use("/", global)
|
||||
|
||||
export default unauth;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import { Router } from "express";
|
||||
import { createSite } from "./createSite";
|
||||
import { signup } from "@server/auth/signup";
|
||||
import { login } from "@server/auth/login";
|
||||
|
||||
const global = Router();
|
||||
|
||||
@@ -9,4 +11,8 @@ global.get("/", (_, res) => {
|
||||
|
||||
global.get("/createSite", createSite);
|
||||
|
||||
// auth
|
||||
global.post("/signup", signup);
|
||||
global.post("/login", login);
|
||||
|
||||
export default global;
|
||||
|
||||
Reference in New Issue
Block a user