faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
_whitelogger has joined #amber
feepbot has quit [Ping timeout: 258 seconds]
feepbot has joined #amber
_whitelogger has joined #amber
_whitelogger has joined #amber
<FromGitter> <0x90_gitlab> Hello everyone, I have used the auth scaffolding to generate such feature, and here it's the authenticate pipeline, https://pastebin.com/raw/KjPmJF8w, now what I want to do is to give unauthenticated users access to `/game_servers/:id` however, I have tried adding that path to the `PUBLIC_PATH` var and it doesn't works, what I am missing?
<FromGitter> <damianham> you need to add regexp and test the regexp
<FromGitter> <damianham> ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5d31fc6ad1cceb1a8d873220]
<FromGitter> <0x90_gitlab> awesome, it works, thank you
<FromGitter> <damianham> mp
<FromGitter> <drujensen> @alex-lairan @damianham There is another way of doing that I think is better cuz it takes advantage of the router and its easier to maintain
<FromGitter> <drujensen> We kinda mention it here: https://docs.amberframework.org/amber/guides/routing/pipelines
<FromGitter> <drujensen> Basically, you can change the `pipes/authenticae.cr` and remove the whole `public_path?` test: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5d321fa1c89880134729e769]
<FromGitter> <drujensen> and then you create a new pipeline in your routes: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5d321fd25ea6e644ece41c8b]
<FromGitter> <drujensen> This only adds the `Authenticate` pipeline to the urls that you want secured
<FromGitter> <drujensen> Then you can add the routes to the sections that you want secured like this: