mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-21 04:01:10 +10:00
feat: annotated client routes
This commit is contained in:
@ -14,7 +14,7 @@ const NewsFetch = type({
|
||||
/**
|
||||
* Fetch instance news articles
|
||||
*/
|
||||
export default defineEventHandler<{ query: typeof NewsFetch.infer }>(
|
||||
export default defineEventHandler<{ query: typeof NewsFetch.infer }, ReturnType<typeof newsManager.fetch>>(
|
||||
async (h3) => {
|
||||
const userId = await aclManager.getUserIdACL(h3, ["news:read"]);
|
||||
if (!userId)
|
||||
|
||||
Reference in New Issue
Block a user