mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
minor
This commit is contained in:
parent
6544d2f99b
commit
f22bdfff7d
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue