By default, a series of routers are defined. Although they are transparent to the programmer and normally there should be no concern about them. They are as follows:
It is defined at /api
and includes endpoints such as: count
, offset/:id
, find
, findAndCount
, findOne
, add
, update
, nativeUpdate
, delete/:id
.
It is defined at /session
and is responsible for checking the user's session and everything related to it.
It is defined at /spreadsheet
and is used for semi-automatic export of data to Excel sheets using exceljs.
It is defined at /report
and is used for the creation of reports in html
and pdf
through pug templates and wkhtmltopdf.
One option to define your own routers is to do so programmatically in the main program, in the constructor new AocServer()
.
Another way is to define them in the configuration file aoc-server-config.json
under the property customRouters
.
Additionally, your instance of AocServer
exposes the main express router of the application with the attribute app.
Please note, browse Issues and Discussions in Github for more information