elysiajs / elysia

Ergonomic Framework for Humans
https://elysiajs.com
MIT License
10.25k stars 219 forks source link

Extended Router #360

Closed mikoloism closed 10 months ago

mikoloism commented 10 months ago

Does the code below have the same behavior?

Express

const router = Router()
// definition of router

const app = express()
app.use(router);

Elysia

const router = new Elysia()
// definition of router 

const app = new Elysia()
app.use(router)

NOTICE https://elysiajs.com/essential/plugin.html

Nmans01 commented 10 months ago

The code you've attached should behave as expected.