import { createRouter } from '@@/create-router';
import { originMiddleware } from '@@/_middlewares';
import { updateUserHandler } from './update-user';

export const usersRouter = createRouter();
usersRouter.use(originMiddleware);

// Self-update. Officer is single-user: the server owner is the only account, so there is no user
// listing, invitation or deletion — the account is created once by /auth/bootstrap.
usersRouter.put('/', updateUserHandler);
