interplane.Get Omega
Read in your language

interplane-forge

INTERPLANE Forge

Brought by drakestapleton

branch main Branches Tags History

interplane-forge / store / moving.om

42 lines · 1374 bytes Raw Blame History
1note store/moving.om: the one answer of the addresses whose part the store build composes out while
2note it moves to the new Interplane store (salvage, community, open, trending; store/mvsalvage.om,
3note store/mvcommunity.om, store/mvopen.om, store/mvgrowth.om, composed by run.sh in place of
4note server/no<part>.om when FORGE_STORE is set). Status 503 with no Retry-After (no time is promised),
5note title "Moving" and the text "This part is moving to the new Interplane store and is not
6note available yet." (server/pages.om ferrti, ferrmsg); a JSON request (a .json name, or Accept JSON)
7note gets the forge/error/1 document with "reason":"moving" (server/jsonp.om fyerr). The request flag
8note fmvng (server/util.om, reset by fresetr) is what tells those words apart from every other 503.
9text tmvjs ".json"
10note mvans: answer this request as moving; any method
11fn mvans to long
12put fmvng 0 1
13put fretry 0 0
14if mvjsnm
15fyerr 503
16end
17ret 503
18end
19note mvjsnm: the path ends with ".json" (a JSON name needs no Accept header)
20fn mvjsnm to bool
21n = get fpathl 0
22m = len tmvjs
23if lt n m
24ret false
25end
26for i ulong m
27if ne get fpath add sub n m i get tmvjs i
28ret false
29end
30end
31ret true
32end
33note mvunder t: the path is t, or t then "/" and anything
34fn mvunder t view uchar * to bool
35if not fpre t
36ret false
37end
38if eq get fpathl 0 len t
39ret true
40end
41ret eq get fpath len t 47
42end