update: remove hitokoto & add reset admin password

This commit is contained in:
tokumeikoi
2022-03-10 11:31:44 +08:00
parent 8832fde4fa
commit 2eb428fc3c
4 changed files with 55 additions and 9 deletions

View File

@ -34,11 +34,4 @@ class CommController extends Controller
}
return $suffix;
}
public function getHitokoto()
{
return response([
'data' => Http::get('https://v1.hitokoto.cn/')->json()
]);
}
}

View File

@ -18,7 +18,6 @@ class GuestRoute
$router->match(['get', 'post'], '/payment/notify/{method}/{uuid}', 'Guest\\PaymentController@notify');
// Comm
$router->get ('/comm/config', 'Guest\\CommController@config');
$router->get ('/comm/getHitokoto', 'Guest\\CommController@getHitokoto');
});
}
}