ui/models/bugSuggestions.js (8 lines of code) (raw):

import { getProjectJobUrl } from '../helpers/location'; export default class BugSuggestionsModel { static get(jobId) { return fetch(getProjectJobUrl('/bug_suggestions/', jobId)).then((resp) => resp.json(), ); } }