Skip to content

Commit

Permalink
chore: remove old discourse comments endpoint (#1636)
Browse files Browse the repository at this point in the history
  • Loading branch information
1emu authored Feb 5, 2024
1 parent c745243 commit 20939c4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/back/routes/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ import routes from 'decentraland-gatsby/dist/entities/Route/routes'
import { EventsService } from '../services/events'
import { validateDebugAddress, validateProposalId, validateRequiredString } from '../utils/validations'

import { discourseComment } from './webhooks'

export default routes((route) => {
const withAuth = auth()
route.get('/events', handleAPI(getLatestEvents))
route.get('/events/all', withAuth, handleAPI(getAllEvents))
route.post('/events/voted', withAuth, handleAPI(voted))
route.post('/events/discourse/new', handleAPI(discourseComment)) //TODO: deprecate
})

async function getLatestEvents() {
Expand Down

0 comments on commit 20939c4

Please sign in to comment.