chore: Update getLatestCommit API endpoint to use ES6 import syntax
This commit is contained in:
parent
88a1e09ef3
commit
48a69e4b98
@ -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';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user