From 48a69e4b9893019ce766a5e0323899fe746f55fa Mon Sep 17 00:00:00 2001 From: Natsu Date: Mon, 17 Jun 2024 17:27:45 +0700 Subject: [PATCH] chore: Update getLatestCommit API endpoint to use ES6 import syntax --- api/getLatestCommit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/getLatestCommit.js b/api/getLatestCommit.js index d5b5b0f..d1b3dfa 100644 --- a/api/getLatestCommit.js +++ b/api/getLatestCommit.js @@ -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';