mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
12 lines
243 B
JavaScript
12 lines
243 B
JavaScript
import open, {openApp, apps} from 'open';
|
|
|
|
const express = require('express');
|
|
const app = express();
|
|
|
|
app.get('/open', (req, res) => {
|
|
const file = req.query.file; // $ Source
|
|
|
|
open(file); // $ Alert
|
|
openApp(file); // $ Alert
|
|
});
|