53 lines
1.9 KiB
JavaScript
53 lines
1.9 KiB
JavaScript
import express from 'express';
|
|
|
|
import ExACT_landingPage from './tests/ExACT_landingPage.js';
|
|
import ExACT_login from './tests/ExACT_login.js';
|
|
//Dashboard
|
|
import ExACT_dashboardMyContent from './tests/ExACT_DashboardMyContent.js';
|
|
//Pages
|
|
import ExACT_contentPage from './tests/ExACT_contentPage.js';
|
|
import ExACT_editItem from './tests/ExACT_editItem.js';
|
|
|
|
const app = express();
|
|
|
|
app.get('/', (req, res) => {
|
|
res.send(`
|
|
<div style="text-align:center; background:#ccc;" width="100%">
|
|
|
|
<h1 style="text-align:center; color:#055a8c; padding-top: 40px;">ExACT Automated Regression Scripts</h1>
|
|
<div style="text-align:center; color:#001; font-size:15px; ">(Click the corresponding link to execute the desired script)</div>
|
|
|
|
<br><div style="padding:3px;"><strong><a href='/ExACT_landingPage' target='_blank'>Landing Page</a></strong></div>
|
|
|
|
<br><div style="padding:3px;"><strong><a href='/ExACT_login' target='_blank'>Login</a></strong></div>
|
|
|
|
<h1 style="text-align:center; color:#055a8c; font-size:20px; ">Dashboard</h1>
|
|
<div style="padding:3px;"><strong><a href='/ExACT_dashboardMyContent' target='_blank'>My Content</a></strong></div>
|
|
<br>
|
|
|
|
|
|
<h1 style="text-align:center; color:#055a8c; font-size:20px; ">Pages</h1>
|
|
<div style="padding:3px;"><strong><a href='/ExACT_contentPage' target='_blank'>Content Page</a></strong></div>
|
|
|
|
<br><div style="padding:3px;"><strong><a href='/ExACT_editItem' target='_blank'>Edit Item</a></strong></div>
|
|
<br>
|
|
</div>
|
|
`);
|
|
})
|
|
|
|
//Landing:
|
|
app.get('/ExACT_landingPage', ExACT_landingPage);
|
|
//Login
|
|
app.get('/ExACT_login', ExACT_login);
|
|
//Dashboard
|
|
//My Content
|
|
app.get('/ExACT_dashboardMyContent', ExACT_dashboardMyContent);
|
|
//Pages
|
|
//Content
|
|
app.get('/ExACT_contentPage', ExACT_contentPage);
|
|
//Edit Item
|
|
app.get('/ExACT_editItem', ExACT_editItem);
|
|
|
|
app.listen(8000, () => {
|
|
console.log('Server is running on port 8000');
|
|
}); |