express routing

This commit is contained in:
newtbot
2023-12-19 18:51:23 +08:00
parent e9ed0144aa
commit 7c53b362eb
11 changed files with 696 additions and 41 deletions

View File

@@ -1,4 +1,6 @@
require("dotenv").config({ path: "../.env" });
const dotenv = require("dotenv");
const path = require('path')
require('dotenv').config({ path: path.resolve(__dirname, '../.env') })
const Sequelize = require("sequelize");
const sequelize = new Sequelize(