Skip to content

Commit

Permalink
Merge branch 'main' into prod-helm-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
CS76 committed Aug 2, 2024
2 parents 52529a7 + f1f1f10 commit ceafebf
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ EUROPEMC_WS_API=https://www.ebi.ac.uk/europepmc/webservices/rest/search
ORCID_ID_SEARCH_API=https://pub.orcid.org/v2.1/search
ORCID_ID_EMPLOYMENT_API=https://pub.orcid.org/v3.0/{orcid_id}/employments
ORCID_ID_PERSON_API=https://pub.orcid.org/v3.0/{orcid_id}/person
CM_API=https://api.naturalproducts.net/latest/
CM_API=https://api.cheminf.studio/latest/
CROSSREF_API=https://api.crossref.org/works/
DATACITE_API=https://api.datacite.org/

Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/SanitizeMolecules.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ protected function fetchCAS($smiles)
protected function standardizeMolecule($mol)
{
try {
$response = Http::post('https://api.naturalproducts.net/latest/chem/standardize', $mol);
$response = Http::post('https://api.cheminf.studio/latest/chem/standardize', $mol);

return $response->json();
} catch (\Illuminate\Http\Client\ConnectionException $e) {
Expand Down
2 changes: 1 addition & 1 deletion app/Jobs/ArchiveStudy.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function handle(): void

// protected function standardizeMolecule($mol)
// {
// $response = Http::post('https://dev.api.naturalproducts.net/latest/chem/standardize', $mol);
// $response = Http::post('https://api.cheminf.studio/latest/chem/standardize', $mol);
// return $response->json();
// }

Expand Down
2 changes: 1 addition & 1 deletion resources/js/Pages/Study/About.vue
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ export default {
},
standardizeMolecules(mol) {
return axios.post(
"https://api.naturalproducts.net/latest/chem/standardize",
"https://api.cheminf.studio/latest/chem/standardize",
mol
);
},
Expand Down
4 changes: 2 additions & 2 deletions resources/js/Pages/Upload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2519,7 +2519,7 @@ export default {
},
standardizeMolecules(mol) {
return axios.post(
"https://api.naturalproducts.net/latest/chem/standardize",
"https://api.cheminf.studio/latest/chem/standardize",
mol
);
},
Expand Down Expand Up @@ -2547,7 +2547,7 @@ export default {
// convert to smiles
axios
.post(
"https://dev.api.naturalproducts.net/latest/chem/standardize",
"https://api.cheminf.studio/latest/latest/chem/standardize",
response.data
)
.then((res) => {
Expand Down
2 changes: 1 addition & 1 deletion resources/js/Shared/Depictor2D.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
width +
'&CIP=' +
CIP +
'&toolkit=rdkit'
'&toolkit=cdk'
"
alt=""
/>
Expand Down
2 changes: 1 addition & 1 deletion resources/js/Shared/SpectraEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ export default {
mol = this.fixLineError(mol);
axios
.post(
"https://api.naturalproducts.net/latest/chem/standardize",
"https://api.cheminf.studio/latest/chem/standardize",
mol.molfile
)
.then((res) => {
Expand Down

0 comments on commit ceafebf

Please sign in to comment.