Separate the Case get endpoint into cases/index and cases/show
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user