import type { FastifyInstance } from "fastify"

import registerSystem from "./system"

/*
 * Core service export all routes
 */
const registerCore = async (fastify: FastifyInstance) => {
  if (!fastify.core) {
    fastify.core = {}
  }
  registerSystem(fastify)
}

export default registerCore
