Skip to content

Commit

Permalink
adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
michelleli01 committed Nov 26, 2023
1 parent 513143e commit c6fedec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import search from "./search/search.router";
import review from "./review/review.router";

import mongoose from "./utils/mongoose";
import { configure } from "./endpoints";

dotenv.config();
const app = express();
Expand All @@ -23,6 +24,9 @@ app.use('/api/profile', profile);
app.use('/api/search', search);
app.use('/api/review', review);

// deprecate configure soon
configure(app);

function setup() {
const port = process.env.PORT || 8080;
app.get("*", (_, response) => response.sendFile(path.join(__dirname, "../../client/build/index.html")));
Expand Down

0 comments on commit c6fedec

Please sign in to comment.