adzialocha / hoffnung3000

Platform for decentralized, anonymized, self-curated festivals
https://hoffnung3000.de
GNU Affero General Public License v3.0
36 stars 8 forks source link

Feature: Public access to events and places when festival is free #82

Closed sandreae closed 4 years ago

sandreae commented 4 years ago

Had a go at refactoring the router to include middleware for the /events and places /route. @adzialocha is this what you were suggesting? https://github.com/adzialocha/hoffnung3000/pull/82/commits/8f0f6b9ae1abc22c2cc9a0cc18ab9f4fc6d6615d

sandreae commented 4 years ago

Thanks for the detailed comments!! I'm really learning a lot ;-p Had a go at implementing it all here https://github.com/adzialocha/hoffnung3000/pull/82/commits/98d06c9f63cfdae2986ffb7b2fc50c26749756b9

I had to make one additional change which was to add middleware that just gets and sets the user value on the routes which are accessible when the festival is free.