No code or server needed: put the waypoints in the link.
Coordinates are in-game zone coordinates, the numbers /way and coordinate add-ons show: 0–100 across and down the zone map (top-left 0,0), with the zone named by its UiMap ID. Durotar 1411, Mulgore 1412, The Barrens 1413, Tirisfal Glades 1420, Silverpine Forest 1421, Orgrimmar 1454, Thunder Bluff 1456, Undercity 1458. The Maps tab lists every ID.
Link format: stops joined by ;, each map:x,y:label, with in-game coordinates as /way writes them:
<page>#r=<uiMapID>[type]:<x>,<y>[:<label>];<next stop>…
[type] is one optional letter after the map ID: q quest pickup, t turn-in, g go to (default), k kill/collect, i interact/use, f flight/boat, h hearth, n note. A label can hold any words, numbers and punctuation; write a space as +. A map name works in place of the ID (Tirisfal+Glades:61,52:Brill). See AGENTS.md for the full guide.
NPC stops: npc<id>[type] puts a stop at an NPC by its Wowhead Forever ID (wowhead.com/forever/npc=<id>), e.g. #r=npc1568q;1420:60.97,52.7:Brill; write npc<id>:<uiMapID>:<x>,<y> for a specific spawn. NPC popups have Add to route.
Example, Undercity flight master → Brill → The Sepulcher:
https://foreverwowmap.com/#r=1458f:63.1,48.3:Undercity;1420q:60.97,52.7:Brill;1421:45.6,42.4:The+Sepulcher
The link and the Import box also take TomTom lines (#way=Tirisfal Glades 61 52 Brill, or /way #1420 61.0 52.0 Brill in the box) and JSON (#r=[{"map":"Tirisfal Glades","x":61,"y":52,"label":"Brill"}]). When part of a link can't be read, the page says which part and why.
Legs on one continent follow walkable terrain when that data is loaded; legs between continents (boats, zeppelins, flights) are not drawn.
Areas and paths (where mobs are, a patrol) go in an &a= part after the route: &a=1420a:58,50,62,50,62,54:Zombies;1420l:60,48,63,49:Patrol is an area with three corners and a patrol loop in Tirisfal Glades. a area, c circle (x, y, radius), p path, l loop. See AGENTS.md, "Annotations".
Inside dungeons the game has no coordinates, so marks (added by link or the agent API) use floor coordinates: 0–100 across and down the floor map shown (boss pins are in the same numbers). #d=wailing-caverns&k=1:42.7,51.7:Entrance;1k:30.6,43:Lady+Anacondra draws an arrow from the entrance to Lady Anacondra. The first number is the floor (1 = first). See AGENTS.md, "Dungeon marks and routes".