Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development #1161

Merged
merged 2 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading