fix: add missing slug and description fields to Article schema and fix auth header
This commit is contained in:
1 parent
8eaaf4afad
commit
ac610e6f6a
2 files changed
+15
-3
No files matched your search
@@ -106,9 +106,13 @@ export class StrapiService {
|
||||
}
|
||||
|
||||
private getHeaders() {
|
||||
return {
|
||||
Authorization: `Bearer ${this.strapiApiToken}`,
|
||||
};
|
||||
// Only include Authorization header if token is set
|
||||
if (this.strapiApiToken) {
|
||||
return {
|
||||
Authorization: `Bearer ${this.strapiApiToken}`,
|
||||
};
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
private async findOrCreateCategory(
|
||||
|
||||
Reference in new issue
Block a user