Separate the Case get endpoint into cases/index and cases/show

This commit is contained in:
Takeshi Kimata
2024-03-20 20:19:12 +09:00
parent 8a2ca8c563
commit 742e0ac1f7
4 changed files with 50 additions and 28 deletions

View File

@@ -5,7 +5,7 @@ const apiServer = Config.apiServer;
* fetch case
*/
async function fetchCase(caseId: number) {
const url = `${apiServer}/cases?caseId=${caseId}`;
const url = `${apiServer}/cases/${caseId}`;
try {
const response = await fetch(url, {