Commit 3aaad91e authored by les's avatar les
Browse files
parent c9780ad5
const express = require('express')
const router = express.Router()
const { user: User } = require('../api/models')
const settingsController = require('../api/controllers/settings')
const config = require('config')
const version = require('../../package.json').version
router.get('/', async (req, res) => {
const ret = {
version: '1.0',
server: {
baseUrl: config.baseurl,
name: config.title,
software: 'Gancio',
version
},
protocols: ['activitypub'],
openRegistrations: settingsControllers.settings.allow_registration,
usage:{
users: {
total: 10
}
},
localPost: 3,
localComments: 0
})
module.exports = router
......@@ -32,6 +32,7 @@ async function start() {
app.use('/api', require('./api/index'))
app.use('/.well-known/webfinger', cors(), require('./federation/webfinger'))
app.use('/.well-known/x-nodeinfo2', cors(), require('./federation/nodeinfo'))
app.use('/federation', cors(), require('./federation'))
// Give nuxt middleware to express
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment