create attachment file table
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const express = require("express");
|
||||
const path = require('path');
|
||||
const { Sequelize } = require("sequelize");
|
||||
const app = express();
|
||||
|
||||
@@ -13,6 +14,9 @@ app.use(cors(corsOptions));
|
||||
// enable json middleware
|
||||
app.use(express.json());
|
||||
|
||||
// Specify the directory to serve static files
|
||||
app.use(express.static(path.join(__dirname, "public")));
|
||||
|
||||
// init sequalize
|
||||
const sequelize = new Sequelize({
|
||||
dialect: "sqlite",
|
||||
|
||||
Reference in New Issue
Block a user