chore(release): 0.2.11
[risinglegends.git] / src / server / api.ts
index 8a7eec80dc29f03b1363e194597a55b4839a6abe..baed723e2c7e50348d50aa18d36077929b718dfe 100644 (file)
@@ -27,6 +27,7 @@ import { getPlayerSkills, getPlayerSkillsAsObject, updatePlayerSkills } from './
 import {SkillID, Skills} from '../shared/skills';
 
 import  { router as healerRouter } from './locations/healer';
+import { router as professionRouter } from './locations/recruiter';
 
 import * as Alert from './views/alert';
 import { renderPlayerBar } from './views/player-bar'
@@ -374,6 +375,7 @@ async function fightRound(player: Player, monster: MonsterWithFaction,  data: {a
 };
 
 app.use(healerRouter);
+app.use(professionRouter);
 
 
 app.get('/chat/history', authEndpoint, async (req: AuthRequest, res: Response) => {
@@ -671,7 +673,7 @@ app.get('/location/:location_id/equipment/:item_id/overview', authEndpoint, asyn
     </div>
   </div>
   <div class="actions">
-    <button hx-put="/location/${equipment.location_id}/equipment/${equipment.id}" formmethod="dialog" value="cancel">Buy</button>
+    <button hx-put="/location/${equipment.location_id}/equipment/${equipment.id}" formmethod="dialog" value="cancel" class="green">Buy</button>
     <button class="close-modal" formmethod="dialog" value="cancel">Cancel</button>
   </div>
 </dialog>