📜  react cookie - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:52.007000             🧑  作者: Mango

代码示例1
// server.jsrequire('@babel/register'); const express = require('express');const serverMiddleware = require('./src/server').default;const cookiesMiddleware = require('universal-cookie-express'); const app = express(); app  .use('/assets', express.static('dist'))  .use(cookiesMiddleware())  .use(serverMiddleware); app.listen(8080, function() {  console.log('Listening on 8080...');});