📅  最后修改于: 2022-03-11 15:03:56.938000             🧑  作者: Mango
const express = require('express');require('express-async-errors');
const User = require('./models/user');
const app = express();
app.get('/users', async (req, res) => {
const users = await User.findAll();
res.send(users);
});