mirror of
https://github.com/GithubOrgProjectPiza/server.git
synced 2026-09-05 15:46:00 +02:00
Add auth to the endpoints
_Well at least I think, idk if it works, please help me, aaaaaahhh_
This commit is contained in:
@@ -2,6 +2,7 @@ import express, { NextFunction, Request, Response } from "express";
|
||||
import dotenv from "dotenv";
|
||||
|
||||
import adminRoutes from "./routes/auth.route";
|
||||
import { requireAuthentication } from "./middleware/auth.middle";
|
||||
const ordersRoutes = require("./routes/orders.route");
|
||||
const organizationsRoutes = require("./routes/organisations.route");
|
||||
const pizzasRoutes = require("./routes/pizzas.route");
|
||||
|
||||
Reference in New Issue
Block a user