gitlab-org--gitlab-foss/app/assets/javascripts/api/markdown_api.js

11 lines
271 B
JavaScript

import axios from '../lib/utils/axios_utils';
import { buildApiUrl } from './api_utils';
const MARKDOWN_PATH = '/api/:version/markdown';
export function getMarkdown(options) {
const url = buildApiUrl(MARKDOWN_PATH);
return axios.post(url, {
...options,
});
}