ElectroAAC
  • 📚ElectroAAC Documentation
  • Reference
    • 🖥️Quick Start
    • ⚙️Backend
      • 📃Endpoints
        • 🔑Authorization
        • 🗽Status
        • 🌀Server
        • 🆕News
        • 📨Account
        • 🧙‍♂️Players
        • 🏆Highscores
        • 🟢Online
        • 💀Lastkills
        • 🏨Guilds
        • 🦂Creatures
        • 👺Items
        • 🛒Shop
          • 🤑Payments
            • 🇧🇷Pix
        • 📊Dashboard
          • 🆕News
          • 💼Accounts
          • 🧙‍♂️Characters
          • 💸Shop
      • ⚒️How to initialize project
      • 🧙‍♂️How to register Character Sample
    • 🦎Frontend
      • 🔮How to initialize project
      • 🔐Configure .env
      • 🐸Configure your vocations
      • ⚜️Change layout
    • 👾Some common mistakes
      • NOT SUPPORTED AUTH
      • Old node version
    • 🪞Run the screen
    • 🔶Run the project with Nginx
      • 🚆How to install
      • ❄️Configure Frontend
      • 🤖Configure Backend (API)
Powered by GitBook
On this page
  1. Reference
  2. ⚙️Backend

🧙‍♂️How to register Character Sample

Go to the folder backend/contracts/enums/Vocations.ts and add new blocks for each sample you want to release on the site.

export const Vocations = [
  {
    vocation_id: 1,
    name: "Character Sample"
  }
]

Example:

export const Vocations = [
  {
    vocation_id: 1,
    name: "Sorcerer Sample"
  },
  {
    vocation_id: 2,
    name: "Druid Sample"
  },
  {
    vocation_id: 3,
    name: "Paladin Sample"
  },
  {
    vocation_id: 4,
    name: "Knight Sample"
  },
]
PreviousHow to initialize projectNextFrontend

Last updated 2 years ago