Expand description
§apiplant-server
Turns a loaded App into a running HTTP service on ntex:
- generic CRUD routes for every resource (
<base>/<resource>[/<id>]), - built-in auth routes (
<base>/auth/...), - one route per loaded function (
<base>/functions/<name>), - lifecycle hooks running functions around each CRUD operation,
- the admin dashboard, embedded in the binary and served at
/admin/for every app unless[admin] enabled = false, - the app’s
public/directory served at the site root, with a 404 page, - TLS inferred from the app’s
https/directory.
Modules§
- admin
- The admin dashboard: its manifest, and baking a static copy of it.
- builtins
- Functions the framework ships with.
- cabi
- Loading function libraries that speak the plain C ABI.
- functions
- Loading and invoking dynamically-compiled function libraries.
- hooks
- Resource lifecycle hooks: running a named function around a CRUD operation.
Functions§
- run
- Boot the server for a loaded app and serve until shut down.