adobe / da-admin

Apache License 2.0
0 stars 4 forks source link

Method First #10

Closed auniverseaway closed 7 months ago

auniverseaway commented 7 months ago

As a developer, I would like da-admin to match typical node application conventions by starting with methods first so that I can on-board easier.

Additional context

In index.js, DA first checks the route. This is backwards from all Express-like applications which use method first. The basic lifecycle should be:

  1. index.js - Entry
  2. Method handler - The handler for the method (GET, PUT, POST, DELETE)
  3. Route - /source, /list, etc.