CenterForDigitalHumanities / CenterForDigitalHumanities/rerum_server_nodejs
Redirect to API.html on open GET
- Lingua principale
- JavaScript
- Stelle
- 3
- Fork
- 6
- Merge medio
- 2g 47m
- PR unite (30g)
- 4
Descrizione
The JSON response may cause trouble and doesn't obviously help. Let's send to the API page so the HTML Document is an obvious thing to get on a GET.
https://github.com/CenterForDigitalHumanities/rerum_server_nodejs/blob/2f43bb89703602c1740b54e8f41bc4299931a88b/routes/api-routes.js#L67-L82
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Apri routes/api-routes.js alle righe 67-82 e ispeziona il gestore GET aperto. Segui il modo in cui viene servito API.html, quindi verifica che una GET aperta reindirizzi a quella pagina invece di restituire la risposta JSON.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- api
- Tipo di issue
- Funzionalità
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 45/100