1
0

chore: Update getLatestCommit API endpoint to use ES6 import syntax

This commit is contained in:
Natsu 2024-06-17 17:27:45 +07:00
parent 88a1e09ef3
commit 48a69e4b98
Signed by: NatsumeLS
GPG Key ID: 6DB67FB460CF46C6

View File

@ -1,8 +1,8 @@
// api/getLatestCommit.js
const fetch = require('node-fetch');
import fetch from 'node-fetch';
module.exports = async (req, res) => {
export default async (res) => {
const username = 'NatsumeLS';
const repo = 'Gakumas-Localify-EN';