Skip to content

Releases: themost-framework/express

2.1.1

13 Dec 11:23
4a47d9b

Choose a tag to compare

What's Changed

Full Changelog: 1.7.0...2.1.1

1.7.0

19 Mar 11:51
853f88c

Choose a tag to compare

What's Changed

Full Changelog: 1.6.2...1.7.0

1.6.2

12 Sep 11:33
eddfd36

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.6.1...1.6.2

1.6.1

31 May 05:53
2d93dcb

Choose a tag to compare

What's Changed

Full Changelog: 1.6.0...1.6.1

1.6.0

02 Feb 05:20
349dbec

Choose a tag to compare

What's Changed

Full Changelog: 1.5.24...1.6.0

1.5.24

09 Dec 10:19
568f485

Choose a tag to compare

What's Changed

Full Changelog: 1.5.23...1.5.24

1.5.23

29 Sep 09:41

Choose a tag to compare

1.5.23

1.5.22

28 Sep 07:57

Choose a tag to compare

What's Changed

  • Use getServiceRouter(Application) method to get an instance of service router running for the given express application. Use this operation if you want to customize the stack of service by adding new functionality e.g. customize router to have a default $top query option.
import { getServiceRouter } from '@themost/express';
// ...
// initialize app
// ...
const router = getServiceRouter(app);
const addRoute = express.Router();
// add a middleware before /:entitySet and set default $top query option
addRoute.get('/:entitySet', function customMiddleware(req, res, next) {
     if (Object.prototype.hasOwnProperty.call(req.query, '$top') === false) {
          Object.assign(req.query, { $top: 100 });
     }
     return next();
});
router.stack.unshift(...addRoute.stack);

1.5.20

02 Jun 14:01

Choose a tag to compare

What's Changed

Full Changelog: 1.5.19...1.5.20

Version 1.5.19

17 Dec 08:06

Choose a tag to compare