serve static
This commit is contained in:
parent
cd56664442
commit
d7ef06b487
6 changed files with 9 additions and 3 deletions
|
|
@ -33,6 +33,8 @@ const apiRoutes = require('./routes/apiRoutes');
|
|||
app.use('/', webRoutes);
|
||||
app.use('/api', apiRoutes);
|
||||
|
||||
app.use(express.static(path.join(__dirname, 'public')));
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`Server started on port ${port}`);
|
||||
});
|
||||
|
|
|
|||
BIN
src/public/kitty.jpeg
Normal file
BIN
src/public/kitty.jpeg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 MiB |
|
|
@ -13,6 +13,9 @@
|
|||
<p>Your session's UUID: <%= uuid %>
|
||||
</p>
|
||||
<p id="pubkey-p" style="display:none">And your pubkey is: <span id="pubkey-span"></span></p>
|
||||
<hr>
|
||||
<p>Here's a kitty, cause why not</p>
|
||||
<img width="300px" src="kitty.jpeg" alt="">
|
||||
</body>
|
||||
|
||||
<script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue