initial commit (app returns google/startpage results)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
const express = require('express');
|
||||
const path = require('path');
|
||||
const handleSearch = require('./search');
|
||||
|
||||
const app = express();
|
||||
const port = 3000;
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '/static/index.html'));
|
||||
});
|
||||
|
||||
app.get('/search', handleSearch);
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`App listening on port ${port}`);
|
||||
});
|
||||
Reference in New Issue
Block a user