This commit is contained in:
lesion 2022-05-23 14:45:14 +02:00
parent 6544d2f99b
commit f22bdfff7d
No known key found for this signature in database
GPG key ID: 352918250B012177
2 changed files with 8 additions and 1 deletions

View file

@ -36,7 +36,7 @@ v-container#event.pa-0.pa-sm-2
//- tags, hashtags
v-card-text(v-if='event.tags.length')
v-chip.p-category.ml-1.mt-3(v-for='tag in event.tags' color='primary'
outlined :key='tag')
outlined :key='tag' :to='`/tag/${tag}`')
span(v-text='tag')
//- info & actions

View file

@ -23,6 +23,7 @@ if (config.status !== 'READY') {
const { isAuth, isAdmin } = require('./auth')
const eventController = require('./controller/event')
const placeController = require('./controller/place')
const settingsController = require('./controller/settings')
const exportController = require('./controller/export')
const userController = require('./controller/user')
@ -121,6 +122,8 @@ if (config.status !== 'READY') {
// allow anyone to add an event (anon event has to be confirmed, TODO: flood protection)
api.post('/event', eventController.isAnonEventAllowed, upload.single('image'), eventController.add)
api.get('/event/search', eventController.search)
api.put('/event', isAuth, upload.single('image'), eventController.update)
api.get('/event/import', isAuth, helpers.importURL)
@ -151,6 +154,10 @@ if (config.status !== 'READY') {
// export events (rss/ics)
api.get('/export/:type', cors, exportController.export)
api.get('/place/:placeName/events', cors, placeController.getEvents)
// - FEDIVERSE INSTANCES, MODERATION, RESOURCES
api.get('/instances', isAdmin, instanceController.getAll)
api.get('/instances/:instance_domain', isAdmin, instanceController.get)
api.post('/instances/toggle_block', isAdmin, instanceController.toggleBlock)