Files
dougal-software/lib/www/server/api/middleware/openapi/index.js
D. Berge 3c4a558e02 Serve OpenAPI document on API root.
When a client makes a request for `/` (the root of
the API), the OpenAPI description is served in an
appropriate format according to the `Accept` request
header, as follows:

Accept: text/html => HTML version
Accept: application/json => JSON version
Accept: * => YAML version
2020-12-29 16:20:57 +01:00

5 lines
45 B
JavaScript

module.exports = {
get: require('./get')
}