feat: upload service account credentials
This commit is contained in:
12
server/src/routes/integration.ts
Normal file
12
server/src/routes/integration.ts
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import { Router } from 'express';;
|
||||||
|
import { google, sheets_v4 } from "googleapis";
|
||||||
|
|
||||||
|
export const router = Router()
|
||||||
|
|
||||||
|
|
||||||
|
router.post('/upload-credentials', (req, res) => {
|
||||||
|
const credentials = req.body.credentials;
|
||||||
|
|
||||||
|
if (!credentials) {
|
||||||
|
return res.status(400).json({ message: 'Credentials are required.' });
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user