Additional Response Headers
- Langage dominant
- TypeScript
- Étoiles
- 934
- Forks
- 427
- Merge moyen
- 17 h 25 min
- PR mergées (30 j)
- 22
Description
Either to the Response Headers or Response data, it would be helpful to include `last-modified` - a date for when the item, monster, etc. was added to the SRC or last edited. This would help identify when an individual index ( i.e animated-shield ) was last modified.
Currently `date` Response Header outputs today's date.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Look at the API response handling code to see where headers are set. The issue mentions the 'date' header currently outputs today's date; find that logic and modify it to include a 'last-modified' header based on the item's actual modification date. Check the data models for monsters and items to see if they have timestamps. Test by making a request to an endpoint like /api/monsters or /api/items and verifying the new header appears.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- typescript
- Domaine
- api
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100