add static homepage

This commit is contained in:
Will Murphy 2019-09-24 13:07:00 -05:00
parent 6e5453f0e2
commit 20b94b35f7
2 changed files with 8 additions and 3 deletions

View file

@ -35,8 +35,6 @@ app.param('name', function (req, res, next, id) {
next()
})
app.get('/', (req, res) => res.send('Hello World!'))
// admin page
app.use('/.well-known/webfinger', cors(), routes.webfinger)
app.use('/u', cors(), routes.user)
@ -49,7 +47,7 @@ app.use('/o', cors(), routes.object)
app.use('/s', cors(), routes.stream)
app.use('/u/:name/inbox', routes.inbox)
app.use('/u/:name/outbox', routes.outbox)
app.use('/admin', express.static('public/admin'))
app.use('/', express.static('public/www'))
app.use('/f', express.static('public/files'))
client.connect({ useNewUrlParser: true })

7
public/www/index.html Normal file
View file

@ -0,0 +1,7 @@
<!DOCTYPE html>
<head>
<title>Guppe Home</title>
</head>
<body>
<h1>Hello</h1>
</body>