mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
12 lines
337 B
TypeScript
12 lines
337 B
TypeScript
import { isEnabled } from '~/locale/config.ts';
|
|
import type { Config, ConfigModule } from '~/locale/config.ts';
|
|
|
|
export default <M extends ConfigModule>(config: Config, module: M) => {
|
|
if (!isEnabled(config, module)) {
|
|
throw createError({
|
|
status: 404,
|
|
statusMessage: 'Not Found',
|
|
});
|
|
}
|
|
};
|