mummy icon indicating copy to clipboard operation
mummy copied to clipboard

Add multi routing support.

Open monocoder opened this issue 10 months ago • 0 comments

Used for specific path prefixes associated with multiple routes. ## For example:

var mainRouter:

...

A sub router can be defined in other files or in the current file. ## There are two sub routes here, users and products, defined in other files.

mainRouter.addRoutesWithPrefix(users, "/api/users") ## mainRouter.addRoutesWithPrefix(products, "/api/products") ## let server = newServer(mainRouter)

server.serve(Port(8080))

monocoder avatar Mar 01 '25 12:03 monocoder