mirror of
https://github.com/abrendan/MicDropMessages.git
synced 2025-06-16 20:55:00 +02:00
6 lines
160 B
JavaScript
6 lines
160 B
JavaScript
// Parse the request parameters
|
|
module.exports = middle => {
|
|
const path = typeof middle[0] === 'string' ? middle.shift() : '*';
|
|
return { path, middle };
|
|
};
|