ソースを参照

fix: typo

hover-contact
ntasicc 3年前
コミット
1a29aae938
3個のファイルの変更3行の追加3行の削除
  1. 1
    1
      requests/dataIdsRequest.js
  2. 1
    1
      requests/dataRequest.js
  3. 1
    1
      requests/singleDataRequest.js

+ 1
- 1
requests/dataIdsRequest.js ファイルの表示

import apiEndpoints from './apiEndpoints'; import apiEndpoints from './apiEndpoints';


export const getDataIds = async () => { export const getDataIds = async () => {
const response = await fetch(`http://localhost:3000/${apiEndpoints.dataIds}`);
const response = await fetch(`http://localhost:3000${apiEndpoints.dataIds}`);


const data = await response.json(); const data = await response.json();



+ 1
- 1
requests/dataRequest.js ファイルの表示



export const getData = async (pageIndex) => { export const getData = async (pageIndex) => {
const response = await fetch( const response = await fetch(
`http://localhost:3000/${apiEndpoints.data}?page=${pageIndex}`
`http://localhost:3000${apiEndpoints.data}?page=${pageIndex}`
); );


const data = await response.json(); const data = await response.json();

+ 1
- 1
requests/singleDataRequest.js ファイルの表示



export const getSingleData = async (dataId) => { export const getSingleData = async (dataId) => {
const response = await fetch( const response = await fetch(
`http://localhost:3000/${apiEndpoints.singleData}${dataId}`
`http://localhost:3000${apiEndpoints.singleData}${dataId}`
); );


const data = await response.json(); const data = await response.json();

読み込み中…
キャンセル
保存