Add Schem Download
This commit is contained in:
@ -39,11 +39,11 @@ export class SchematicRepo {
|
||||
}
|
||||
|
||||
public async getSchematicCodeInfo(code: string): Promise<Schematic> {
|
||||
return await fetchWithToken(this.token, `/schem/download/${code}/info`).then(value => value.json()).then(SchematicSchema.parse);
|
||||
return await fetchWithToken(this.token, `/download/${code}/info`).then(value => value.json()).then(SchematicSchema.parse);
|
||||
}
|
||||
|
||||
public getSchematicDownloadUrl(code: string): string {
|
||||
return `/schem/download/${code}`;
|
||||
return `${import.meta.env.PUBLIC_API_SERVER}/download/${code}`;
|
||||
}
|
||||
|
||||
public async uploadSchematic(name: string, content: string) {
|
||||
|
||||
Reference in New Issue
Block a user