debian-mirror-gitlab/app/assets/javascripts/api/markdown_api.js

12 lines
271 B
JavaScript
Raw Normal View History

2021-09-04 01:27:46 +05:30
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,
});
}