Skip to content

Commit

Permalink
make public folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunder80 committed Feb 7, 2023
1 parent edf208f commit 6683780
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ const express = require("express");
const cors = require("cors");
const RootRouter = require("./routes");
const path = require("path");
const fs = require("fs");

console.log(__dirname, "../public");
if (!fs.existsSync(path.join(__dirname, "../public")))
fs.mkdirSync(path.join(__dirname, "../public"));

const app = express();

Expand Down

0 comments on commit 6683780

Please sign in to comment.