<?php

use Illuminate\Support\Facades\Route;
use Kylin\WordFilter\Http\Controllers\WordFilterController;
use Kylin\WordFilter\Http\Controllers\WordVersionController;

Route::prefix('kylin/word-filter')->group(function () {
    // 词库版本
    Route::get('/version', [WordVersionController::class, 'version']);
    Route::get('/sync', [WordVersionController::class, 'sync']);

    // 文本过滤
    Route::post('/filter', [WordFilterController::class, 'filter']);
    Route::post('/filter/batch', [WordFilterController::class, 'batchFilter']);

    // 分类列表
    Route::get('/categories', [WordFilterController::class, 'categories']);
});
