7 changed files with 70 additions and 7 deletions
@ -0,0 +1,18 @@ |
|||||
|
import {getClient} from "../utils/database.js"; |
||||
|
|
||||
|
|
||||
|
export async function getRecommendations(req, res) { |
||||
|
|
||||
|
const token = req.headers.authorization?.split(' ')[1]; |
||||
|
|
||||
|
if (!token) { |
||||
|
|
||||
|
// GET MOST USED TOKEN
|
||||
|
let client = await getClient(); |
||||
|
let queryMostUsedToken = `SELECT * FROM tags ` |
||||
|
|
||||
|
} else { |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,7 @@ |
|||||
|
import { Router } from 'express'; |
||||
|
|
||||
|
const router = Router(); |
||||
|
|
||||
|
router.get('/', [], getRecommendations); |
||||
|
|
||||
|
export default router; |
||||
Loading…
Reference in new issue