Skip to content

Commit

Permalink
fixed merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
parkrafael committed Dec 4, 2024
2 parents 5986f04 + 1e50c61 commit d737a6b
Show file tree
Hide file tree
Showing 58 changed files with 710 additions and 1,118 deletions.
18 changes: 11 additions & 7 deletions backend/index.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
import cors from "cors";
import dotenv from "dotenv";
import express from "express";
import authRoutes from "./src/routes/auth-route.js";
import logRoutes from "./src/routes/logbooks-route.js";
import authRoutes from "./src/routes/authRoutes.js";
import logRoutes from "./src/routes/logRoutes.js";
import transcriptionRoutes from "./src/routes/transcriptionRoutes.js";
import fileUpload from "express-fileupload";

dotenv.config();

const corsOptions = {
origin: ["http://localhost:5173"],
origin: ["http://localhost:5173"],
};
const app = express();
const PORT = process.env.PORT || 8080;

app.use(cors(corsOptions));
app.use(express.json());
app.use(fileUpload());

app.use('/api/auth', authRoutes);
app.use('/api/logbooks', logRoutes);
//Routes
app.use("/api/auth", authRoutes);
app.use("/api/log", logRoutes);
app.use("/api/transcriptions", transcriptionRoutes);

app.listen(PORT, () => {
console.log(`Server listening on ${PORT}`);
console.log(`Server listening on ${PORT}`);
});

Loading

0 comments on commit d737a6b

Please sign in to comment.