mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-15 10:12:06 -05:00
Create index.js
This commit is contained in:
parent
1352e8cba0
commit
9c39d35980
46
index.js
Normal file
46
index.js
Normal file
@ -0,0 +1,46 @@
|
||||
const express = require('express');
|
||||
const path = require('path');
|
||||
|
||||
const app = express();
|
||||
const port = process.env.PORT || 3000;
|
||||
|
||||
|
||||
app.use(express.static(__dirname));
|
||||
|
||||
app.get('/projects', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, 'projects.html'));
|
||||
});
|
||||
|
||||
app.get('/bookmarklets', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, 'bookmarklets.html'));
|
||||
});
|
||||
|
||||
app.get('/settings', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, 'settings.html'));
|
||||
});
|
||||
|
||||
app.get('/support', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, 'support.html'));
|
||||
});
|
||||
|
||||
app.get('/about', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, 'about.html'));
|
||||
});
|
||||
|
||||
app.get('/transfer', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, 'transfer.html'));
|
||||
});
|
||||
|
||||
app.get('/suggest', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, 'suggest.html'));
|
||||
});
|
||||
|
||||
app.get('/contact', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, 'contact.html'));
|
||||
});
|
||||
|
||||
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`Selenite is running on port ${port}`);
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user