debian-mirror-gitlab/app/assets/javascripts/api/markdown_api.js
2021-09-04 01:27:46 +05:30

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,
});
}