BoxLang 🚀 A New JVM Dynamic Language Learn More...

Route Auditor

v1.0.0 Modules

Route Auditor

Background

This module is a simple interceptor which captures the event being run based on the route that was hit in your API and persists it to a database with the date, time and endpoint hit.

Configuration

There are 3 properties to configure:

"routeAuditor": { "datasource":"", "dataTable":"routedEvents", "active": true }

Data will only capture when all three properties are set and will fail silently with only a message to the console as an announcement in order to prevent any possibility of this logging tool to interfere with operation of the site.

Feedback to dcard ( at ) Ortussolutions.com

Change Log

1.0.0 - Added support to save the verb from the submitted request. Note: There is a migration in this version to add the new column "verb" to the routedEvents table. 0.0.4 - fixed error in migration. 0.0.3 - Added the routedRoute column and changed the route column to record the route listed in the router 0.0.2 - Amended code and migration to accomodate a header called "appCode" to track from where the call comes. 0.0.1 - Initial Release.

  •   Dan Card
  • Published
  • 1.0.0 is the latest of 5 release(s)
    Published
  • Published on {{ getFullDate("2024-01-09T18:14:25Z") }}

$ box install route_auditor

No collaborators yet.
  • {{ getFullDate("2023-11-14T02:58:40Z") }}
  • {{ getFullDate("2024-01-09T18:14:25Z") }}
  • 826
  • 1,170