Files
egovframe-msa-edu/frontend/portal/src/service/Content.ts
2021-10-21 09:03:17 +09:00

23 lines
416 B
TypeScript

import axios from 'axios'
/**
* 컨텐츠 데이터 타입
*/
export interface IContent {
contentName: string
contentRemark: string
contentValue: string
}
/**
* 포털 서비스 컨텐츠 API URL
*/
const CONTENT_URL = '/portal-service/api/v1/contents'
/**
* 컨텐츠 관리 서비스
*/
export const contentService = {
get: async (contentNo: number) => axios.get(`${CONTENT_URL}/${contentNo}`),
}