Merge pull request #1612 from pi-hole/fix/api_docs

Embed missing file API specs file specs/action.yaml
This commit is contained in:
DL6ER 2023-08-02 19:25:31 +02:00 committed by GitHub
commit 3f1aa4d29f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -124,6 +124,10 @@ static const unsigned char specs_search_yaml[] = {
#include "hex/specs/search.yaml"
};
static const unsigned char specs_action_yaml[] = {
#include "hex/specs/action.yaml"
};
struct {
const char *path;
const char *mime_type;
@ -158,6 +162,7 @@ struct {
{"specs/search.yaml", "text/plain", (const char*)specs_search_yaml, sizeof(specs_search_yaml)},
{"specs/stats.yaml", "text/plain", (const char*)specs_stats_yaml, sizeof(specs_stats_yaml)},
{"specs/teleporter.yaml", "text/plain", (const char*)specs_teleporter_yaml, sizeof(specs_teleporter_yaml)},
{"specs/action.yaml", "text/plain", (const char*)specs_action_yaml, sizeof(specs_action_yaml)},
};
#endif // API_DOCS_H