feat: add better provider support, icons, regen, and a lot more
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { cancelPendingRename } from '~~/server/utils/renames';
|
||||
import { assert } from '~~/utils/assert';
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
await protectRoute(event);
|
||||
|
||||
const { renameId } = event.context.params!;
|
||||
assert(renameId);
|
||||
|
||||
if (cancelPendingRename(renameId)) {
|
||||
return {
|
||||
success: true,
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
success: false,
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user