mirror of https://github.com/pelias/api.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
327 B
16 lines
327 B
7 years ago
|
// this sanitizer exists solely to allow `lang` as a request parameter
|
||
|
function _sanitize( raw, clean ){
|
||
|
// error & warning messages
|
||
|
return { errors: [], warnings: [] };
|
||
|
}
|
||
|
|
||
|
function _expected(){
|
||
|
return [{ 'name': 'lang' }];
|
||
|
}
|
||
|
|
||
|
// export function
|
||
|
module.exports = () => ({
|
||
|
sanitize: _sanitize,
|
||
|
expected: _expected
|
||
|
});
|