11import type { Complex , ComplexInput } from '../types/complex' ;
22
33// 仮のユーザーID (認証基盤実装時に置き換える)
4- const DUMMY_USER_ID = 'test- user-uuid-12345 ' ;
4+ const DUMMY_USER_ID = 'user-test-123 ' ;
55
66const API_BASE_URL = '/api/v1' ;
77
@@ -12,7 +12,6 @@ const getAuthHeaders = () => ({
1212
1313/* コンプレックス一覧取得 */
1414export const fetchComplexes = async ( ) : Promise < Complex [ ] > => {
15- // eslint-disable-next-line no-undef
1615 const response = await fetch ( `${ API_BASE_URL } /complexes` , {
1716 headers : getAuthHeaders ( ) ,
1817 } ) ;
@@ -22,7 +21,6 @@ export const fetchComplexes = async (): Promise<Complex[]> => {
2221
2322/* 新しいコンプレックスを登録 */
2423export const createComplex = async ( data : ComplexInput ) : Promise < Complex > => {
25- // eslint-disable-next-line no-undef
2624 const response = await fetch ( `${ API_BASE_URL } /complexes` , {
2725 method : 'POST' ,
2826 headers : getAuthHeaders ( ) ,
@@ -34,7 +32,6 @@ export const createComplex = async (data: ComplexInput): Promise<Complex> => {
3432
3533// コンプレックス削除 (ComplexesPage.tsxで使用していたダミー関数を置き換え)
3634export const deleteComplex = async ( id : number ) : Promise < void > => {
37- // eslint-disable-next-line no-undef
3835 const response = await fetch ( `${ API_BASE_URL } /complexes/${ id } ` , {
3936 method : 'DELETE' ,
4037 headers : getAuthHeaders ( ) ,
0 commit comments