> For the complete documentation index, see [llms.txt](https://iamthilina.gitbook.io/xpress-req-validator/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://iamthilina.gitbook.io/xpress-req-validator/get-started/basic-usage/providing-configurations.md).

# Providing Configurations

next we must define the configurations for our middleware

{% code title="config.js" %}

```javascript
import {DEVICE_SPEC} from './spec';

export default {
    specs: {
        POST: {
            '/device': {
                body: DEVICE_SPEC,
            },
        },
    },
};
```

{% endcode %}
