3 Star 0 Fork 0

mirrors_Azure/ms-identity-b2c-javascript-spa

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
server.js 581 Bytes
一键复制 编辑 原始数据 按行查看 历史
derisen 提交于 5年前 . first commit
const express = require('express');
const morgan = require('morgan');
const path = require('path');
const DEFAULT_PORT = process.env.PORT || 6420;
// initialize express.
const app = express();
// Initialize variables.
let port = DEFAULT_PORT;
// Configure morgan module to log all requests.
app.use(morgan('dev'));
// Setup app folders.
app.use(express.static('App'));
// Set up a route for index.html
app.get('*', (req, res) => {
res.sendFile(path.join(__dirname + '/index.html'));
});
// Start the server.
app.listen(port);
console.log(`Listening on port ${port}...`);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_Azure/ms-identity-b2c-javascript-spa.git
git@gitee.com:mirrors_Azure/ms-identity-b2c-javascript-spa.git
mirrors_Azure
ms-identity-b2c-javascript-spa
ms-identity-b2c-javascript-spa
main

搜索帮助