adds default doc

This commit is contained in:
ajaythapliyal
2023-03-01 09:05:16 +05:30
parent 923165957e
commit 2f63bf85b5
5 changed files with 36 additions and 5936 deletions

View File

@@ -1,3 +1,4 @@
// not all properties in Doc are going to be present. Make some optional
export type Doc = {
name: string;
language: string;
@@ -52,7 +53,9 @@ export function setLocalRecentDocs(doc: Doc): void {
}
const docPath =
doc.language + '/' + namePath + '/' + doc.version + '/' + doc.model;
doc.name === 'default'
? 'default'
: doc.language + '/' + namePath + '/' + doc.version + '/' + doc.model;
fetch('https://docsapi.arc53.com/api/docs_check', {
method: 'POST',
headers: {