mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-26 21:18:49 +00:00
fix: lint
This commit is contained in:
parent
3a60f63fd2
commit
b6171600c2
@ -47,10 +47,10 @@ async function getBanks(directory) {
|
|||||||
return { banks, files };
|
return { banks, files };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line
|
||||||
const directory = process.cwd();
|
const directory = process.cwd();
|
||||||
const server = http.createServer(async (req, res) => {
|
const server = http.createServer(async (req, res) => {
|
||||||
res.setHeader('Access-Control-Allow-Origin', '*');
|
res.setHeader('Access-Control-Allow-Origin', '*');
|
||||||
// eslint-disable-next-line
|
|
||||||
const { banks, files } = await getBanks(directory);
|
const { banks, files } = await getBanks(directory);
|
||||||
if (req.url === '/') {
|
if (req.url === '/') {
|
||||||
res.setHeader('Content-Type', 'application/json');
|
res.setHeader('Content-Type', 'application/json');
|
||||||
@ -94,7 +94,7 @@ if (!IP) {
|
|||||||
server.listen(PORT, IP_ADDRESS, () => {
|
server.listen(PORT, IP_ADDRESS, () => {
|
||||||
console.log(`@strudel/sampler is now serving audio files from:
|
console.log(`@strudel/sampler is now serving audio files from:
|
||||||
${directory}
|
${directory}
|
||||||
|
|
||||||
To use them in the Strudel REPL, run:
|
To use them in the Strudel REPL, run:
|
||||||
samples('http://localhost:${PORT}')
|
samples('http://localhost:${PORT}')
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user