Server Api
Zely is running on osik which was made for speed and weight.
If you want information of osik, visit here.
Zely()
It creates a core server.
ts
import { Zely } from 'zely';
const server = await Zely({
/* config */
});
// middleware
server.use((req, res, next) => {
next();
});
server.listen(3000, () => {});
import { Zely } from 'zely';
const server = await Zely({
/* config */
});
// middleware
server.use((req, res, next) => {
next();
});
server.listen(3000, () => {});