The AOC Framework
github logodiscord logo

BACKEND

Routers #

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:

Rest #

It is defined at /api and includes endpoints such as: count, offset/:id, find, findAndCount, findOne, add, update, nativeUpdate, delete/:id.

Session #

It is defined at /session and is responsible for checking the user's session and everything related to it.

Spreadsheet #

It is defined at /spreadsheet and is used for semi-automatic export of data to Excel sheets using exceljs.

Report #

It is defined at /report and is used for the creation of reports in html and pdf through pug templates and wkhtmltopdf.

Defined By User #

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

© 2025 Atlantis of Code. All rights reserved.
All trademarks are the property of their respective owners.