1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-07 10:16:24 -07:00
gochan/frontend/js/api/threads.js

12 lines
No EOL
266 B
JavaScript

/* eslint no-unused-vars: ["warn", {"args":"none"}] */
/* global webroot */
import $ from "jquery";
export async function getThreadJSON(threadID, board) {
return $.ajax({
url: `${webroot}${board}/res/${threadID}.json`,
cache: false,
dataType: "json",
});
}