00:06:25  * ericlimajoined
00:20:27  * phishyquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
00:21:11  * phishyjoined
00:33:40  * ericlimaquit (Remote host closed the connection)
00:39:38  * phishyquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
00:47:33  * jhmjoined
01:00:10  * ccleary00_joined
01:00:56  * ccleary00_quit (Client Quit)
01:17:00  * JamJam_kidjoined
01:28:46  * JamJam_kidquit (Remote host closed the connection)
01:33:00  * wreedquit (Quit: Goodbye)
01:35:58  * JamJam_kidjoined
01:45:38  * JamJam_kidquit (Remote host closed the connection)
03:22:15  * Roughyquit (Quit: Meadow Fresh milk)
06:28:53  * tobiequit (Read error: Connection reset by peer)
06:29:27  * tobiejoined
06:42:16  * Arcarcjoined
06:55:57  * lezsakdomijoined
06:57:22  <lezsakdomi>Hi!
06:57:40  <lezsakdomi>I am having problems with my non-standard router setup.
06:59:04  <lezsakdomi>I want my URL-resolving system have (lets say) a, b and c as designators and 1, 2 and 3 as real resources.
06:59:28  <lezsakdomi>Example usage: /1, /a/1, /b/1, /a/b/1.
07:01:05  <lezsakdomi>Different designators responds differently to resources, with a fall-back option to other designator if the *last* designator does not support the given resource.
07:03:09  * jhmquit (Ping timeout: 260 seconds)
07:03:25  <lezsakdomi>My current idea is to write designators as routers and resources as router.any handlers.
07:07:38  <lezsakdomi>So first I need to define all routers (outerRouter, mainRouter, aRouter, bRouter, cRouter), then instruct every router for it's possible sub-designators (*Router.use('/a', aRouter).use('/b', bRouter).use('/c', cRouter)), then define *Router.any(['/1', '/2', '/3']), then define a fallback for every router to mainRouter (aRouter.use(mainRouter); bRouter.use(mainRouter); cRouter.use(mainRouter))
07:07:50  <lezsakdomi>But it does not work as intended
07:09:01  <lezsakdomi>If aRouter does not handle '/1' but bRouter does, then '/b/a/1' would be handled only by mainRouter.
07:09:48  <lezsakdomi>Here's how I implemented:
07:09:51  <lezsakdomi>https://gitlab.com/probot-contest/server/backend/blob/1-split-api-and-interface/routes/api.js
07:10:24  <lezsakdomi>Do you have any idea, how could I make it better or what did I wrong?
07:28:27  <lezsakdomi>I've found a solution in https://gitlab.com/probot-contest/server/backend/commit/21630cdb48b8e74d998e2c8e74b94579aa369e00 , but that's disguisting. So my question is just >>Do you have any idea, how could I make it better?<<
07:29:54  <lezsakdomi>(after everything, I apply the following every router1 and router2: if (router !== router2) router1.use(router2) )
07:38:09  * Arcarcarcjoined
07:39:18  * ceborquit (Quit: ZNC - http://znc.in)
07:40:30  * ceborjoined
07:41:29  * Arcarcquit (Ping timeout: 256 seconds)
07:47:10  * Arcircjoined
07:50:25  * Arcarcarcquit (Ping timeout: 248 seconds)
09:49:29  * phishyjoined
10:07:15  * phishyquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
10:08:05  * jakutisjoined
10:25:05  * mylesborinsquit (Quit: farewell for now)
10:25:36  * mylesborinsjoined
10:36:37  * jakutisquit (Remote host closed the connection)
10:39:26  * jakutisjoined
11:01:59  * hollusionjoined
12:25:07  * ericlimajoined
12:25:15  * ericlimaquit (Remote host closed the connection)
12:25:27  * ericlimajoined
12:36:59  * wreedjoined
13:26:33  * phishyjoined
14:11:52  * phishyquit (Read error: Connection reset by peer)
14:39:56  * Roughyjoined
14:43:39  * greggerzjoined
14:52:36  * Aquazijoined
15:43:58  * Arcircquit (Ping timeout: 256 seconds)
16:41:12  * Arcarcjoined
17:26:00  * hollusionquit (Quit: Leaving)
17:56:33  * sz0joined
18:21:49  * Arcarcquit (Ping timeout: 256 seconds)
18:46:33  * reactiv3joined
19:19:32  * reactiv3quit (Quit: Leaving)
19:40:09  * ravenzzjoined
20:07:29  * sz0quit (Quit: Connection closed for inactivity)
20:18:55  * davidmichaelkarrquit (Quit: Connection closed for inactivity)
21:19:51  * Aquazi_joined
21:22:57  * Aquaziquit (Ping timeout: 256 seconds)
21:37:14  * JamJam_kidjoined
21:42:53  * JamJam_kidquit (Ping timeout: 255 seconds)
21:51:33  * JamJam_kidjoined
22:15:52  * JamJam_kidquit (Ping timeout: 265 seconds)
22:20:44  * ericlimaquit (Remote host closed the connection)
22:29:32  * greggerzquit (Quit: Leaving)
22:36:59  * Kronuzquit (Ping timeout: 268 seconds)